4 ms·
> I'm not sure how XHR alone would let you automatically get backend state changes reflected to the frontend. Long polling. Check out (history of) "Comet": ht
by klibertp 2y ago
> I'm not sure how XHR alone would let you automatically get backend state changes reflected to the frontend.
Long polling.
Check out (history of) "Comet": https://en.wikipedia.org/wiki/Comet_(programming)#Implementations https://en.wikipedia.org/wiki/Comet_(programming)#Implementa...
- jpc0 2y agoSSR is effectively long polling with a standardised format and is browser native. Also writing a client ontop of an existing HTML client is very very easy so even when not on web it's east to implement...