3 ms·
I use [ws](https://github.com/websockets/ws https://github.com/websockets/ws). I've never had any trouble with it, and it benchmarks well. Of course, there's
by thedufer 11y ago
I use [ws](https://github.com/websockets/ws https://github.com/websockets/ws). I've never had any trouble with it, and it benchmarks well. Of course, there's no fallback there; just websockets.
I haven't seen a websocket+fallback lib that seems like it will work well. Requiring sticky sessions and disallowing using node's cluster module is the norm, and neither of those are appealing. We've rolled our own polling fallback, which is also used to cleanly handle missed messages during a websocket reconnect.