▲ | korkybuchek 6 days ago | ||||||||||||||||
> socket.io is probably one of the most unnecessary libraries on this planet. Websockets are already as simple as possible. Eh... While I agree that socket.io is one of those libraries you could probably "write" in an afternoon, and Websockets are simple, there are a couple of things that are kinda painful to rewrite time after time:
| |||||||||||||||||
▲ | Karrot_Kream 6 days ago | parent | next [-] | ||||||||||||||||
Websockets already have keepalives. Everything but long polling is doable in a few hours and can probably be one-shotted by an LLM. For long-polling, you can just drop down to Fetch calls. | |||||||||||||||||
| |||||||||||||||||
▲ | andoando 6 days ago | parent | prev [-] | ||||||||||||||||
And automatic json parsing of messages |