Sending the same message at the same time to many users

Hello,

I have 1 bot written with exmpp. And some clients - 10 for example. I need to send from this bot 1 message in one time. I need that users receive message all in one time. I use exmpp_session:send_packet/2 like in exmpp examples. But it's very slow. All users received message by queue.

I have some question:

Bot doesn't written in OTP style. It's only loop/receive. can it's affect the speed if bot will be rewrite with gen_server and replace loop/receive in handle_info and etc...?

Is anywhere methods simultaneously to sending message to many peoples at one time in exmpp?

Thank you.

Syndicate content