You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
I am writing a curl script that calls express/node.js url to send a message to a group chat room. All my logic to send message to group chat is in online callback.
When I call the curl script twice, I see three messages being posted (second call also posts the message from first call) to group chat room. Is there a clean way to close connection or leave chat room after sending each message to group chat room?
The text was updated successfully, but these errors were encountered:
I am writing a curl script that calls express/node.js url to send a message to a group chat room. All my logic to send message to group chat is in online callback.
xmpp.on('online', function() {
chat_room = req.body.chat_room + '@conference.chat.domain.com';
xmpp.join(chat_room+'/batman');
xmpp.send(chat_room, req.body.content, true);
});
When I call the curl script twice, I see three messages being posted (second call also posts the message from first call) to group chat room. Is there a clean way to close connection or leave chat room after sending each message to group chat room?
The text was updated successfully, but these errors were encountered: