Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid State: Cannot call send: until connection is open #282

Open
BeatBear opened this issue Jan 16, 2017 · 3 comments
Open

Invalid State: Cannot call send: until connection is open #282

BeatBear opened this issue Jan 16, 2017 · 3 comments

Comments

@BeatBear
Copy link

pls,help me

@ljs19923
Copy link

ljs19923 commented Feb 8, 2017

same problem...

@MusabBasheer
Copy link

@BeatBear you must wait until connection open to invoke any method

@tristandl
Copy link

i have this issue, and i'm not sending until the SRConnection notifies me i the start block. it's only happened once, but i'm trying to work out why this is crashing our live app, to prevent it happening again.

afaict, the websocket transport will not report to the connection that the connection is connected, until the transport is started and the socket is open, but i can't really tell by digging through the SRWebSocketTransport and SRWebSocket code - it seems that when some headers are received didConnect is called, but i can't see how those headers get passed through (seems to be from safeHandleEvent but I can't see anyone calling that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants