Hi Mathew,

Perhaps I should not be using fire_event(). 
What I am attempting to do is  capture all "muc_events" (such as join room, 
leave room...) in a MUC room and send it via HTTP. 
I have written a module that incorporates a handler which does a HTTP post 
of the events received. This, in my opinion, must be an asynchronous 

Your help will be much appreciated.


On Wednesday, January 20, 2016 at 3:26:44 PM UTC-5, Matthew Wild wrote:
> On 20 January 2016 at 20:24, Matthew Wild <mwi...@gmail.com <javascript:>> 
> wrote: 
> > On 20 January 2016 at 19:13, Harsha Bellur <hbe...@gmail.com 
> <javascript:>> wrote: 
> >> Hi 
> >> 
> >> In situations where events (same event_name) are getting fired 
> >> (module:fire_event()) quicker than the handler function (defined in 
> >> module:hook()), is it safe to assume that the events are queued? 
> > 
> > There is no queue - module:fire_event() d 
> Sorry, hit send somehow too early. 
> There is no queue - module:fire_event() does not return until the 
> handler has finished. 
> Handlers should never take long to execute, they should return 
> instantly. If you're having trouble with slow handlers, they need 
> fixing (we can help you figure out how, if you need). 
> Regards, 
> Matthew 

You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to