Worlize/WebSocket-Node — Issue #20: Connection passed with Message Event
Author: revnode
Created: 2011-11-04 22:03:56+00:00
State: open

This is a minor tweak that would make life much easier. The connect and close events both pass the connection, but message does not. This makes things a bit awkward if you want to respond to the message. You're forced to use variables outside of the local scope.

This is easily changed by modifying WebSocketConnection.js on line 340, 356, 399, 405 from:

this.emit('message', {

to

this.emit('message', this, {

Thank you for this great library!