WebsocketProvider - fixed incorrect variable name

pull/272/merge
aaron 10 years ago
parent 507241f73c
commit e97478cc1e
  1. 2
      lib/websocket.js

@ -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")

Loading…
Cancel
Save