3 ms·
ServerSentEvents are great to subscribe to a single topic. It's simple to use and handle re-connections automatically, even providing the last seen event ID. If
by zimbatm 12y ago
ServerSentEvents are great to subscribe to a single topic. It's simple to use and handle re-connections automatically, even providing the last seen event ID. If you want to subscribe to multiple topics and change subscriptions dynamically then multiplexing over WebSocket might be a better fit.