def connectionLost(self, reason): WampServerProtocol.connectionLost(self, reason) self.memoryChartVirt.timer.stop() self.memoryChartVirt = None self.memoryChartSwap.timer.stop() self.memoryChartSwap = None
def connectionLost(self, reason): """ When connection is gone (i.e. client close window, navigated away from the page), stop the model timer, which holds last reference to model, and delete the model """ WampServerProtocol.connectionLost(self, reason) self.infoModel = None
def connectionLost(self, reason): client = client_map.get(self.session_id) if client is not None: self.unsetPlayer(client) client.disconnect() del client_map[self.session_id] # send an actual list of connected users dispatchUsers() WampServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): """ When connection is gone (i.e. client close window, navigated away from the page), stop the model timer, which holds last reference to model, and delete the model """ WampServerProtocol.connectionLost(self, reason) self.memoryChartVirt.timer.stop() self.memoryChartVirt = None self.memoryChartSwap.timer.stop() self.memoryChartSwap = None self.memoryInfoVirt.timer.stop() self.memoryInfoVirt = None self.memoryInfoSwap.timer.stop() self.memoryInfoSwap = None
def connectionLost(self, reason): WampServerProtocol.connectionLost(self, reason) self.factory.unregister(self)
def connectionLost(self, reason): self.pubsub.send_users_list(exclude=[self]) WampServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): WampServerProtocol.connectionLost(self, reason) self.factory.removeConnection(self)
def connectionLost(self, reason): text = getattr(reason, 'value', reason) log.msg('lost session from %s:%s' % (str(self.peer), text)) WampServerProtocol.connectionLost(self, reason) BroadcastServerProtocol.metrics["sessions_closed"] += 1