Esempio n. 1
0
 def subscribe(self, service, _filter):
     self.filter = _filter
     self.emulated = False
     options = dict(details_arg=str('details'))
     if None in _filter:
         options["match"] = "wildcard"
     options = SubscribeOptions(**options)
     _filter = WampMQ.messageTopic(_filter)
     self.unreg = yield service.subscribe(self.invoke, _filter, options=options)
     if self.callback is None:
         yield self.stopConsuming()
Esempio n. 2
0
 def subscribe(self, service, _filter):
     self.filter = _filter
     self.emulated = False
     options = dict(details_arg=str('details'))
     if None in _filter:
         options["match"] = "wildcard"
     options = SubscribeOptions(**options)
     _filter = WampMQ.messageTopic(_filter)
     self.unreg = yield service.subscribe(self.invoke, _filter, options=options)
     if self.callback is None:
         yield self.stopConsuming()
Esempio n. 3
0
 def subscribe(self, callback, topic=None, options=None):
     service = yield self.getService()
     ret = yield service.subscribe(callback, topic, options)
     defer.returnValue(ret)
Esempio n. 4
0
 def subscribe(self, callback, topic=None, options=None):
     service = yield self.getService()
     ret = yield service.subscribe(callback, topic, options)
     defer.returnValue(ret)