2 ms·
If you don't need fallback to HTTP, there are some alternative libraries that handle auto reconnect for pure WebSockets: https://github.com/fanout/websockhop h
by jkarneges 11y ago
If you don't need fallback to HTTP, there are some alternative libraries that handle auto reconnect for pure WebSockets:
https://github.com/fanout/websockhop https://github.com/fanout/websockhop
https://github.com/joewalnes/reconnecting-websocket https://github.com/joewalnes/reconnecting-websocket
- dtf 11y agoAlso, if your traffic is basically one-way like in this example, don't forget Server-Sent Events, which are auto-reconnecting and well supported.