Skip to content

Commit

Permalink
w3c-ws: fix invalid property access
Browse files Browse the repository at this point in the history
s/connection/socketEventEmitter

PR-URL: #94
  • Loading branch information
aqrln committed Mar 13, 2017
1 parent f3c9241 commit 19168f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/transport.ws.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ W3CWebSocketClient.prototype.connect = function(callback) {
//
W3CWebSocketClient.prototype.disconnect = function(callback) {
transportCommon.ensureClientConnected(this);

if (callback) {
this.connection.once('close', callback);
this.socketEventEmitter.once('close', callback);
}

this.socket.close();
};

Expand Down

0 comments on commit 19168f4

Please sign in to comment.