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