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

Fix autoreconnect #84

Merged
merged 5 commits into from
Apr 20, 2021
Merged

Fix autoreconnect #84

merged 5 commits into from
Apr 20, 2021

Conversation

jenow
Copy link

@jenow jenow commented Apr 20, 2021

What does this PR do ?

fixes #83

The disconnected event was not thrown in case of a manual disconnect.
Also the auto reconnection logic was not working. I moved the logic of the reconnection from the abstract protocol class to the actual websocket protocol and now call the reconnected event.

@jenow jenow self-assigned this Apr 20, 2021
@jenow jenow requested a review from Shiranuit April 20, 2021 09:11
lib/src/protocols/websocket_io.dart Outdated Show resolved Hide resolved
@jenow jenow requested a review from Shiranuit April 20, 2021 09:28
@Yoann-Abbes Yoann-Abbes merged commit a5749e7 into 2-dev Apr 20, 2021
@Yoann-Abbes Yoann-Abbes deleted the 83-disconnect-reconnect-event branch April 20, 2021 14:44
This was referenced Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants