def onClose(self, wasClean, code, reason): """Connect closed, cleanup""" # base logs WebSocketServerProtocol.onClose(self, wasClean, code, reason) if self.client is None: if self.debug: log.msg("MSP430ServerProtocol.onClose - No Client type") return self.client.onClose(wasClean, code, reason)
def onClose(self, wasClean, code, reason): # logline("ONCLOSE: %s" % reason) WebSocketServerProtocol.onClose(self, wasClean, code, reason) delkey = None for key in connections: if connections[key]['wsh'] == self: delkey = key if delkey: del connections[delkey] logline("jsdb client %s disconnected." % delkey)
def onClose(self, wasClean, code, reason): print 'closed', self.peerstr WebSocketServerProtocol.onClose(self, wasClean, code, reason) self.factory.unregister(self)
def onClose(self, wasClean, code, reason): print 'close ....' WebSocketServerProtocol.onClose(self, wasClean, code, reason)
def onClose(self, wasClean, code, reason): print 'close', reason, code #if self.player: # self.player.connects.remove(self) return WebSocketServerProtocol.onClose(self, wasClean, code, reason)