What prosody triggers when there is no internet connection in jitsi
Either the bosh connection timeouts in up to 60 seconds or the websocket is closed, both result a participant left event.
thanks well is there a lua prosody file checking this?
You can always add yours like this: https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_speakerstats_component.lua#L225
What is your goal? What are you trying to achieve?
I send a request to a service with user information in occupant_leaving because I use a vait () done () in the request, when the user goes to the internet connection “Not running in an async context, see prosody.im/doc/devel…util/async” this error I meet with.
Yeah, you can send an event on “muc-occupant-pre-leave” or “muc-occupant-left”.
I am sending an http request in the component you have mentioned and I use the wait () and done () methods.
When the internet connection is lost due to this reason, it gives me the error “not running in async context”. How can I fix this error?
Prosody is single threaded, and if you block the thread nothing is happening and it stops working.
You can use a callback https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/util.lib.lua#L226