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 to destroy the reconnecting-websocket instance? #113

Open
moonCai opened this issue Jul 27, 2020 · 3 comments
Open

How to destroy the reconnecting-websocket instance? #113

moonCai opened this issue Jul 27, 2020 · 3 comments

Comments

@moonCai
Copy link

moonCai commented Jul 27, 2020

No description provided.

@kohenkatz
Copy link

Call the .close() method. That should be all you need to do.

@moonCai
Copy link
Author

moonCai commented Aug 14, 2020

I know that. After the .close() method is called, the reconnecting-websocket instance stopped receiving new messages, but it still exists in the browser.
WeChat10c792dc69c599e24c04e2bdaee9f244

@thebrubaker
Copy link

I noticed the same thing and was wondering how I terminate the connection so it doesn't continue to stay open (as seen in my network tab). Running socket.close() doesn't seem to terminate anything and I'm poking around but don't see any other methods.

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

3 participants