joewalnes / reconnecting-websocket

A small decorator for the JavaScript WebSocket API that automatically reconnects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to destroy the reconnecting-websocket instance?

moonCai opened this issue · comments

commented

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

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