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 onSessionOpen(self): if self.factory.config.secure: ## require WAMP-CRA authentication self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = True WampCraServerProtocol.onSessionOpen(self) else: WampServerProtocol.onSessionOpen(self) self.onReady()
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 onMessage(self, msg, binary): WampServerProtocol.onMessage(self, msg, binary)
def connectionLost(self, reason): WampServerProtocol.connectionLost(self, reason) self.factory.unregister(self)
def onOpen(self): self.factory.register(self) WampServerProtocol.onOpen(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