Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

How to handle join hundreds of MUCs?

$
0
0

Suppose I'm participating to 100 groups in Whatsapp.

 

When I disconnect from the openfire, due to a network problem (for example) and the pong was not sent back to the server, I will automatically leave all of them (I need a small timeout on the server to notify other users on the MUC when the user will be with slow connection and messages are not arriving).

 

But when reconnected, I should rejoin all of them again. In my java app using smack, I have in memory the list of joined rooms, so I'm spawing threads to join all of them again in parallel, because it can be a lot slow between joins. Is that the right way to handle this? I would like to know what is a good practice and how most of apps implement this.

 

Thanks!


Viewing all articles
Browse latest Browse all 4979

Trending Articles