mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 21:15:47 +00:00
Fix typo in common/connection.js
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user