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

How can I end correctly the connection? #33

Open
aang7 opened this issue Nov 19, 2020 · 0 comments
Open

How can I end correctly the connection? #33

aang7 opened this issue Nov 19, 2020 · 0 comments

Comments

@aang7
Copy link

aang7 commented Nov 19, 2020

I'm using the browser client and calling client.end() to disconnect the client,
but the callback of connected are calling each time I reconnect...
So for example, I initialize the connection and all good, then I close the connection (or at least I thougth I was closing it) and initialize another connection and my callbacks are excuting twice.. I tried starting a new connection with a new id, because if try to reconnect, the client is connectin and reconnecting, so it seems like it's trying to connect using the same connection id...
Any idea of what could be the problem..? Thank you.

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

No branches or pull requests

1 participant