예제 #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)