Open zenmanenergy opened 8 years ago
I can't seem to get the "closed" function to fire when a client disconnects. Has anyone successfully made this work?
Yes, with javascript
socket = new WebSocket(host); log('WebSocket - status ' + socket.readyState);
socket.onclose = function(msg) { log("Disconnected - status "+this.readyState); };
I can't seem to get the "closed" function to fire when a client disconnects. Has anyone successfully made this work?