Lines Matching refs:disconnect
39 disconnect: null, // Called when socket is disconnected.
142 // Register disconnect callback.
143 this.callbacks.disconnect = callback;
149 * @see http://developer.chrome.com/trunk/apps/socket.html#method-disconnect
151 TcpClient.prototype.disconnect = function() {
154 socket.disconnect(this.socketId);
155 if (this.callbacks.disconnect) {
156 this.callbacks.disconnect();
212 log('socket disconnect detected');
213 that.disconnect();