Nathan Black

Results 78 comments of Nathan Black

[`robust-websocket`](https://github.com/appuri/robust-websocket) a library with a similar API and is aware of [HTML5 offline/online events natively](https://github.com/appuri/robust-websocket/blob/f023a3ff40ff731936d155f4018e3d6c695fefce/test/tests.js#L218-L243) (which are triggered on wakeup as you were asking @vgoklani ) - as well as...

[`robust-websocket`](https://github.com/appuri/robust-websocket) allows you to fully configure when to reconnect via a [function callback](https://github.com/appuri/robust-websocket#shouldreconnect)

I considered that @aparmar but there's too many issues with this library on fundamental levels that I started a new project fresh, especially with 0 tests. I have no idea...

This package is for the browser's implementation of WebSocket. Use the `ws` package for a node.js client WebSocket implementation.

[`robust-websocket`](https://github.com/appuri/robust-websocket) works in Safari with [tests to prove it](https://saucelabs.com/tests/a84e91a5303444ff829df6d396788034)

[`robust-websocket`](https://github.com/appuri/robust-websocket) a library with a similar API and is aware of [HTML5 offline/online events natively](https://github.com/appuri/robust-websocket/blob/f023a3ff40ff731936d155f4018e3d6c695fefce/test/tests.js#L218-L243) - check it out I bet it will meet your needs!

[`robust-websocket`](https://github.com/appuri/robust-websocket) fowards the [real CloseEvent](https://github.com/appuri/robust-websocket/blob/ebd5e248528c0f9b42a5391d66247ad3e9b2b967/robust-websocket.js#L167-L169) if you'd like to switch over to a library with tests and more features.

It could also prioritize large aggregates over smaller ones