示例#1
0
 def on_message(self, message):
     logging.info("got msg: %r" % message)
     evapi(raw=message, group=subs, who=self.state)
示例#2
0
 def on_close(self):
     subs.drop(self.state)
     evapi(msg={"url": "/out"}, group=subs, who=self.state)
示例#3
0
 def send():
     evapi(who=self, group=subs, **kw)