Re-connect XMPP when disconnected #2

Merged
raucao merged 4 commits from feature/1-reconnect_xmpp into master 2020-11-27 11:22:32 +00:00
Owner

Long-term we should switch to the new XMPP lib, which does continuous reconnects until you tell it to stop. But this should at least fix normal disconnects.

Long-term we should switch to the new XMPP lib, which does continuous reconnects until you tell it to stop. But this should at least fix normal disconnects.
raucao added the
kredits-1
enhancement
labels 2020-11-26 17:45:29 +00:00
raucao requested review from slvrbckt 2020-11-26 19:37:57 +00:00
raucao requested review from galfert 2020-11-26 19:37:58 +00:00
galfert requested changes 2020-11-26 20:55:28 +00:00
galfert left a comment
Owner

Left one comment, the rest looks good to me.

Left one comment, the rest looks good to me.
@ -9,0 +16,4 @@
xmpp.on('online', function(data) {
robot.logger.info('XMPP connected with JID: ' + data.jid.toString());
xmppRooms.forEach(room => xmpp.join(`${room}/wormholedev`));
Owner

Is this supposed to use the hardcoded name "wormholedev"?

Is this supposed to use the hardcoded name "wormholedev"?
Author
Owner

Good catch. Thanks!

Good catch. Thanks!
raucao marked this conversation as resolved
raucao requested review from galfert 2020-11-27 00:56:04 +00:00
galfert approved these changes 2020-11-27 11:19:52 +00:00
galfert left a comment
Owner

Looking all good now 👍

Looking all good now 👍
raucao merged commit 46eb0452f5 into master 2020-11-27 11:22:32 +00:00
raucao deleted branch feature/1-reconnect_xmpp 2020-11-27 11:22:40 +00:00
raucao removed review request for slvrbckt 2020-11-27 11:22:47 +00:00
Author
Owner

Released as 1.1.0 and deployed in production.

Released as [1.1.0](https://gitea.kosmos.org/kosmos/wormhole/releases/tag/v1.1.0) and deployed in production.
Sign in to join this conversation.
No description provided.