4 ms·
If you want to use websockets, then you are most definitely going to need some library that wraps the websocket, because websockets themselves are very simple a
by Sammi 2y ago
If you want to use websockets, then you are most definitely going to need some library that wraps the websocket, because websockets themselves are very simple and don't do things like reconnect on their own.
This one is pretty simple and pretty great:
https://github.com/lukeed/sockette https://github.com/lukeed/sockette
I did my own which provides rpc functionality and type safety:
https://github.com/samal-rasmussen/smolrpc https://github.com/samal-rasmussen/smolrpc