Skip to content

Commit

Permalink
WebsocketProvider - fixed incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Jan 17, 2015
1 parent 507241f commit e97478c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ WebSocketProvider.prototype.unload = function() {
this.ws.close();
};
Object.defineProperty(WebSocketProvider.prototype, "onmessage", {
set: function(provider) { this.onMessage(provider); }
set: function(handler) { this.onMessage(handler); }
});

if (typeof(module) !== "undefined")
Expand Down

0 comments on commit e97478c

Please sign in to comment.