Wait until converse.js joins room

155 Views Asked by At

Is there a way through which we can wait until converse.js has joined a room? And once we have joined, we receive some sort of event ? I see that the converse documentation has a tag that can wait until converse.js has fully loaded

_converse.on('connected', function () { ... });

I was wondering if there is a way to call this API from JS on webapage ?

1

There are 1 best solutions below

0
JC Brand On

You can listen for the chatRoomOpened event.

More info here: https://conversejs.org/docs/html/events.html#chatroomopened