Open BeatBear opened 7 years ago
same problem...
@BeatBear you must wait until connection open to invoke any method
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)
pls,help me