xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.19k stars 372 forks source link

Reconnect does not emit "online" event #851

Closed ZakSingh closed 3 years ago

ZakSingh commented 3 years ago

The reconnect function emits open, while xmpp.start() emits open then online. However, when you check xmpp.status, the value is online in both cases.

sonnyp commented 3 years ago

Please reproduce and share logs with https://github.com/xmppjs/xmpp.js/tree/master/packages/debug

More information would also be useful, server name, server version, xmpp.js version

BTW if you have stream management enabled and the stream resumes after disconnect, online wont be emitted just as offline wasn't emitted. That's expected - from a user perspective resuming a stream is like nothing happened.