steerapi/sockjs-client-node — pull request #1 by dstibrany (2013-07-04 16:40:25+00:00)
Title: catch connection errors, pass along error object when catching errors in transport.send

Basically,
`client.on('error', function (e) { // something went wrong });`
was not doing anything. So I added a listener in the WebSocketTransport file.

I also figured it makes send to pass the err object in transport.send