def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) if self.room: self.factory.broadcast(self.room.setOnline(self.name, False), self.room.name, self) if self.room.empty(): self.factory.roomEmpty(self.room.name) self.factory.unregister(self)
def connectionLost(self, reason): try: self.factory.clients.remove(self) except ValueError: # client doesn't exist, pass pass WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) envelopes = handler.unregisterClient(self) self.factory.sendEnvelopes(envelopes) self.factory.unregister(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory.stats.trackOctetsWireIn(self.trafficStats.preopenIncomingOctetsWireLevel + \ self.trafficStats.incomingOctetsWireLevel) self.factory.stats.trackOctetsWireOut(self.trafficStats.preopenOutgoingOctetsWireLevel + \ self.trafficStats.outgoingOctetsWireLevel)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) if self.connected: self.room.user_disconnect(self.user_session) self.connected = False self.user_session = None self.room = None
def connectionLost(self, reason): """ Unregister each client (self) as it disconnects. """ WebSocketServerProtocol.connectionLost(self, reason) self.factory.unregister(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) try: del self.factory.posdict[self.peerstr] except KeyError: pass try: del self.factory.statedict[self.peerstr] except KeyError: pass self.factory.unregister(self)
def connectionLost(self, reason): global serial_port global serial_device global serial_baudrate if not self.connection_invalid: print "Disconnect Message Received" if serial_port != None: oldserial = serial_port serial_port = None serial_device = None serial_baudrate = None self.read_thread.stop() self.read_thread.join() oldserial.close() WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.send_hello = False
def connectionLost(self, reason): DomotikaAjaxProtocol.connectionLost(self, 'autobahn', reason) WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory.handle_request_end(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) #super(WebSocketProcessOutputterThing, self).connectionLost(self, reason) self.factory.unregister(self)
def connectionLost(self, reason): '''Override function. ''' WebSocketServerProtocol.connectionLost(self, reason) self.factory.unregister(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory.onConnectionCountChanged()
def connectionLost(self, reason=None): WebSocketServerProtocol.connectionLost(self, reason) if self in self.factory.clients: self.factory.clients.remove(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) logging.info('Connection lost from %s!', self.peerstr) self.factory.clients.remove(self)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory.leave(self.peer)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) log.msg("Simulator disconnected...")
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) # app.logger.debug("socket lost for %s: %s" % (self.peerstr, reason)) self.factory.unregister(self, self.user)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): print 'Connection lost by ' + self.client self.client = None WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): """Log when the connection is lost""" LOG.info('wshandler: Connection lost') WebSocketServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) print "Connection lost, reason", reason
def connectionLost(self,reason): self.factory.connections.remove(self) WebSocketServerProtocol.connectionLost(self, reason)#always after your code
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory.unregister(self)
def connectionLost(self, reason): """Log when the connection is lost""" self._log('Connection lost') WebSocketServerProtocol.connectionLost(self, reason)