コード例 #1
0
ファイル: server.py プロジェクト: vminakov/system-monitor
   def connectionLost(self, reason):
      WampServerProtocol.connectionLost(self, reason)

      self.memoryChartVirt.timer.stop()
      self.memoryChartVirt = None

      self.memoryChartSwap.timer.stop()
      self.memoryChartSwap = None
コード例 #2
0
 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
コード例 #3
0
ファイル: server.py プロジェクト: andrewgsoler/AutobahnPython
   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()
コード例 #4
0
ファイル: server.py プロジェクト: turtledb/AutobahnPython
   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()
コード例 #5
0
ファイル: abserver.py プロジェクト: fregaham/manaclash
    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)
コード例 #6
0
   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
コード例 #7
0
ファイル: server.py プロジェクト: yankaics/data007
 def onMessage(self, msg, binary):
     WampServerProtocol.onMessage(self, msg, binary)
コード例 #8
0
ファイル: server.py プロジェクト: yankaics/data007
 def connectionLost(self, reason):
     WampServerProtocol.connectionLost(self, reason)
     self.factory.unregister(self)
コード例 #9
0
ファイル: server.py プロジェクト: yankaics/data007
 def onOpen(self):
     self.factory.register(self)
     WampServerProtocol.onOpen(self)
コード例 #10
0
ファイル: server.py プロジェクト: SunnyMagadan/eatbullet
 def connectionLost(self, reason):
     self.pubsub.send_users_list(exclude=[self])
     WampServerProtocol.connectionLost(self, reason)
コード例 #11
0
 def connectionLost(self, reason):
     WampServerProtocol.connectionLost(self, reason)
     self.factory.removeConnection(self)
コード例 #12
0
ファイル: __init__.py プロジェクト: yadt/yadtbroadcast-server
 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