Skip to content

Commit

Permalink
Fix typo in common/connection.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Cohen committed Feb 11, 2016
1 parent 11ed6b1 commit 94a852c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class Connection extends EventEmitter {
// event is also emitted when then underlying net.Socket closes the
// connection (end or close)."
this._ws.on('error', error =>
this.emit('error', 'websocket', error.messsage, error));
this.emit('error', 'websocket', error.message, error));
this._ws.on('message', this._onMessage.bind(this));
// in browser close event can came before open event, so we must
// resolve connect's promise after reconnect in that case.
Expand Down

0 comments on commit 94a852c

Please sign in to comment.