Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Invalid State: Cannot call send: until connection is open -- > Solution #98

Closed

Description

@ljs19923

I added this condition in ClientPrivate.swift so that no SRWebSocket error occurred if the connection is not yet open when I try to unsubscribe.

What do you think ? Before that I had a crash if I tried to unsubscribe after subscribe and a slow connection.

What do you think about that ?

That's works for me

image

Activity

  1. eeallen1 commented on Feb 16, 2017

    @eeallen1

    @JulienLevallois This seems to have fixed the problem for me too. I'll let you know if I notice any downsides

  2. flovilmart commented on Feb 23, 2017

    @flovilmart
    Contributor

    @JulienLevallois #81 introduces the client.update(subscription, toQuery: newQuery)

    If your parse-server is up to date that should work as-is. We're finalizing our tests at the moment with that feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions