pladaria / reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)
MIT License
1.23k stars 199 forks source link

Force closing #7

Closed pladaria closed 8 years ago

pladaria commented 8 years ago

If you call .close() when there's no network, the native (browser) websocket waits until timeout and then closes.

Add an option to close() so that it can force close without waiting and try to open a new one.