LearnBoost/socket.io — Issue #731: hybi-07-12.js onSocketConnect incorrectly calling sockets "connection" callback
Author: davidfooks
Created: 2012-01-27 14:54:55+00:00
State: open

The client side WebSocket library:
https://github.com/TooTallNate/Java-WebSocket

uses draft 10 of the websocket protocol:
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10

To observe:

- Start a connection from the client.
- Server correctly reports "warn - websocket connection invalid: received no key" as this draft of websocket has no "sec-websocket-key" header
- Server calls the socket "connection" event even though the connection request failed
- Server never calls the socket "disconnect" event

Expected behaviour:
I don't expect the server to call the "connection" event on a connection it has refused.