Every line of 'socket io disconnect' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
336 function disconnect(handle) { 337 if (handle) { 338 handle.end(); 339 handle.destroy(); 340 } 341 }
122 disconnect() { 123 this.socket.close(); 124 this.socket = null; 125 this.isConnected = false; 126 this.callback(); 127 }
103 disconnect() { 104 if (this.state === ST_CLOSED) { 105 return; 106 } 107 this.state = ST_CLOSED; 108 this.emit('disconnect', 'the connection is disconnected.'); 109 }
263 disconnect () { 264 if (!this.connected) { 265 console.warn('Client is not connected!') 266 return 267 } 268 269 this._client.disconnect() 270 }
46 disconnect(socket, client) { 47 48 }
31 disconnectSocket(){ 32 this.socket.disconnect() 33 this.uid = undefined 34 }
18 disconnect: function disconnect(s) { 19 this.reactor().disconnect(s); 20 },
84 destroy() { 85 this.socket && this.socket.disconnect(); 86 Socket.instance = null; 87 }
56 disconnect() { 57 this.socket.emit(SocketRemoteControl.Events.Disconnected) 58 }
23 function socketDisconnect(e){ 24 console.log('Disconnect ', e); 25 }