Beispiel #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+)#')
Beispiel #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()
Beispiel #3
0
 def connectionMade(self):
     RedisSubscriber.connectionMade(self)
     self.dispatch.clientConnected()
Beispiel #4
0
 def __init__(self, dispatch):
     RedisSubscriber.__init__(self)
     self.dispatch = dispatch
Beispiel #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()