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 = {}
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 = {}
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)
def connectionLost(self, reason): WebSocketServerProtocol.connectionLost(self, reason) self.factory._unsubscribeClient(self)