Ejemplo n.º 1
0
 def __init__(self, encoding="pickle"):
     assert encoding in ["json", "pickle"], "encoding not supported"
     self.encoding = encoding
     self.subscriber = RedisSubscriber()
     #self.listSubs = {}
     self.regexKeys = re.compile('\w+=\w+')
     self.regexType = re.compile('^event:(\w+)#')
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     RedisSubscriber.__init__(self, *args, **kwargs)
     self.msg_channel = None
     self.msg_message = None
     self.msg_received = defer.Deferred()
     self.channel_subscribed = defer.Deferred()
Ejemplo n.º 3
0
 def connectionMade(self):
     RedisSubscriber.connectionMade(self)
     self.dispatch.clientConnected()
Ejemplo n.º 4
0
 def __init__(self, dispatch):
     RedisSubscriber.__init__(self)
     self.dispatch = dispatch
Ejemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     RedisSubscriber.__init__(self, *args, **kwargs)
     self.msg_channel = None
     self.msg_message = None
     self.msg_received = defer.Deferred()
     self.channel_subscribed = defer.Deferred()