|
|
|
|
|
by chalas_r
1621 days ago
|
|
Mercure is an alternative to WebSocket that is especially useful for REST/GraphQL APIs.
It's a protocol that builds on HTTP and Server-Sent Events thus is supported out of the box by browsers, mobile apps and IoT clients, and it doesn't suffer from most WebSocket limitations (e.g. header/cookie based authorization works): https://mercure.rocks |
|
* Doesn't natively support binary data.
* If you're using HTTP/1.1 in the browser, you'll be severely limited in the number of SSE connections you can have going at a time. If you're on HTTP/2 then it's not a problem.