Hacker News new | ask | show | jobs
by Sammi 431 days 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

I did my own which provides rpc functionality and type safety: https://github.com/samal-rasmussen/smolrpc