示例#1
0
文件: wamp.py 项目: hansent/Autobahn
   def connectionMade(self):
      WebSocketServerProtocol.connectionMade(self)
      WampProtocol.connectionMade(self)

      ## RPCs registered in this session (a URI map of (object, procedure)
      ## pairs for object methods or (None, procedure) for free standing procedures)
      self.procs = {}

      ## Publication handlers registered in this session (a URI map of (object, pubHandler) pairs
      ## pairs for object methods (handlers) or (None, None) for topic without handler)
      self.pubHandlers = {}

      ## Subscription handlers registered in this session (a URI map of (object, subHandler) pairs
      ## pairs for object methods (handlers) or (None, None) for topic without handler)
      self.subHandlers = {}
示例#2
0
    def connectionMade(self):
        WebSocketServerProtocol.connectionMade(self)
        WampProtocol.connectionMade(self)

        ## RPCs registered in this session (a URI map of (object, procedure)
        ## pairs for object methods or (None, procedure) for free standing procedures)
        self.procs = {}

        ## Publication handlers registered in this session (a URI map of (object, pubHandler) pairs
        ## pairs for object methods (handlers) or (None, None) for topic without handler)
        self.pubHandlers = {}

        ## Subscription handlers registered in this session (a URI map of (object, subHandler) pairs
        ## pairs for object methods (handlers) or (None, None) for topic without handler)
        self.subHandlers = {}
示例#3
0
   def __init__(self, debug = False):
      WebSocketServerProtocol.__init__(self, debug)
      AutobahnProtocol.__init__(self)

      ## RPCs registered in this session (a URI map of (object, procedure)
      ## pairs for object methods or (None, procedure) for free standing procedures)
      self.procs = {}

      ## Publication handlers registered in this session (a URI map of (object, pubHandler) pairs
      ## pairs for object methods (handlers) or (None, None) for topic without handler)
      self.pubHandlers = {}

      ## Subscription handlers registered in this session (a URI map of (object, subHandler) pairs
      ## pairs for object methods (handlers) or (None, None) for topic without handler)
      self.subHandlers = {}
示例#4
0
    def connectionLost(self, reason):
        self.factory._unsubscribeClient(self)
        self.factory._removeSession(self)

        WampProtocol.connectionLost(self, reason)
        WebSocketServerProtocol.connectionLost(self, reason)
 def connectionLost(self, reason):
    WebSocketServerProtocol.connectionLost(self, reason)
    FuzzingProtocol.connectionLost(self, reason)
 def connectionMade(self):
    WebSocketServerProtocol.connectionMade(self)
    FuzzingProtocol.connectionMade(self)
示例#7
0
 def connectionLost(self, reason):
     WebSocketServerProtocol.connectionLost(self, reason)
     FuzzingProtocol.connectionLost(self, reason)
示例#8
0
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)
     FuzzingProtocol.connectionMade(self)
示例#9
0
文件: wamp.py 项目: hansent/Autobahn
   def connectionLost(self, reason):
      self.factory._unsubscribeClient(self)
      self.factory._removeSession(self)

      WampProtocol.connectionLost(self, reason)
      WebSocketServerProtocol.connectionLost(self, reason)
示例#10
0
 def connectionLost(self, reason):
    WebSocketServerProtocol.connectionLost(self, reason)
    self.factory._unsubscribeClient(self)