How can I tell on "reconnected" if sm resume worked or not? #1003
Answered
by
singpolyma
singpolyma
asked this question in
Q&A
-
When a connection reconnects, if stream management was enabled then xmpp.js will attempt to resume the sm session. If it succeeds, then I will get all the stanzas I missed while I was disconnected, if it fails then I will not and need to do a MAM sync. How can I tell which has happened? |
Beta Was this translation helpful? Give feedback.
Answered by
singpolyma
Nov 8, 2023
Replies: 1 comment 1 reply
-
On further testing, it seems that "online" event is sent for connect or reconnect, but not if sm resumes, is that right? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
singpolyma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On further testing, it seems that "online" event is sent for connect or reconnect, but not if sm resumes, is that right?