Hi,
Is it possible to publish an event from within an event handler?
Example:
def doit():
....do some work...
...notify that work is done by publishing another event...
(I tried appSession.publish(WORKDONE)...but it does not seem to work)
yield self.subscribe(doit, DOIT)
Thanks,
Raffaele
Hi Raffaele,
> Is it possible to publish an event from within an event handler?
Sure. Just do session.publish() where session is an instance of
ApplicationSession
Cheers,
/Tobias
>
> Example:
> def doit():
> ....do some work...
>
> ...notify that work is done by publishing another event...
> (I tried appSession.publish(WORKDONE)...but it does not seem to work)
>
> yield self.subscribe(doit, DOIT)
>
> Thanks,
> Raffaele
>
> --
> You received this message because you are subscribed to the Google
> Groups "Crossbar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crossbario+...@googlegroups.com
> <mailto:crossbario+unsub...@googlegroups.com>.