square/SocketRocket — Issue #15: Using a not-connected connection hangs
Author: aif1990
Created: 2012-02-26 01:24:20+00:00
State: open

Doing:

[_websocket open];
[_websocket send:(@"meh")];

prevents SocketRocket from fully opening the connection. I suppose the socket state is getting corrupted by sending before the connection is ready. It's unintuitive and I just lost 2 hours trying to figure out why my socket was not opening.

Maybe all socket operations except for `open` should block until `webSocketdidOpen` gets called?