Comment

Comment by samwillis

You should have a look at adding Server Sent Events / EventSource support [1]. Its propper streaming events, not closing the connection (not web socket, just http) that fall back to long polling.

Most of the time when people use websockets they should just be using SSE.

1: https://en.wikipedia.org/wiki/Server-sent_events

parent samwillis 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton