3 ms·
I can see the benefit over WebSockets since it establishes a schema/API for sending/receiving messages. However, I'm not seeing the benefit over server-sent eve
by HorizonXP 12y ago
I can see the benefit over WebSockets since it establishes a schema/API for sending/receiving messages. However, I'm not seeing the benefit over server-sent events along with AJAX POSTs for any data you want to submit. And both work over regular ports (80/443), whereas it looks like MQTT is out-of-band.
- zimbatm 12y agoServerSentEvents 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.