2 ms·
SSE/Mercure (as WebSockets) is much battery-efficient than polling (push vs poll, less bandwidth used). Additionally, on controlled environnements, SSE can use
by kdunglas 2y ago
SSE/Mercure (as WebSockets) is much battery-efficient than polling (push vs poll, less bandwidth used).
Additionally, on controlled environnements, SSE can use a « push proxy » to wake up the device only when necessary: https://html.spec.whatwg.org/multipage/server-sent-events.html#eventsource-push https://html.spec.whatwg.org/multipage/server-sent-events.ht...