Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Reconnect on connection loss #998

Open
mightymop opened this issue Jan 10, 2021 · 0 comments
Open

Auto Reconnect on connection loss #998

mightymop opened this issue Jan 10, 2021 · 0 comments

Comments

@mightymop
Copy link
Collaborator

mightymop commented Jan 10, 2021

Is your feature request related to a problem? Please describe.

After server restart an automatic reconnect would be fine...

Is your feature request related to a specific XEP?

no

Describe the solution you'd like

We could set a timer to try a reconnect after 30seconds if the connection was dropped or could not be established.
(on disconnection not forced by the user of course)

  • in Connector.ts there is connection handler which will be called on disconnection events...

extend it with state = Strophe.Status.DISCONNECTING, condition = 'forced' at this state so we know when a user wants to disconnect..
all other events for connection loss should be catched then...

Additional context

for reconnect please take care on this issue in current StropheJS Version:
strophe/strophejs#369

i made a PR for this to fix:
strophe/strophejs#371

I hope it will be merged in the next StropheJS version

oh i think this is the same as #859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant