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