incorrect onClose in WS js
This commit is contained in:
parent
38a2ea5199
commit
ed35969084
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ var WebSocketReceiver = {
|
|||
|
||||
//Attach onmessage to websocket
|
||||
ws.onmessage = WSR.onMessage;
|
||||
ws.onclose = function() { debug("socket closed"); };
|
||||
ws.onclose = function() { WSR.debug("socket closed"); };
|
||||
ws.onopen = function() {
|
||||
ws.send(location.pathname);
|
||||
WSR.debug("connected...");
|
||||
|
|
|
|||
Loading…
Reference in a new issue