ecyrbe / zodios

typescript http client and server with zod validation
https://www.zodios.org/
MIT License
1.71k stars 46 forks source link

Subscriptions through SSE #154

Closed thelinuxlich closed 2 years ago

thelinuxlich commented 2 years ago

To keep things simple, as of today most browser support HTTP 2, so SSE doesn't have those disadvantages of the past and can replace Websockets anywhere you aren't building a FPS-shooter on the browser :)

So it's a simpler architecture and built upon HTTP already. Some GraphQL projects are already adopting SSE as the standard for subscriptions, like graphql-yoga for example.

What do you think?

ecyrbe commented 2 years ago

Hello, Thank you for raising a question, suscriptions are out of scope for zodios, whatever technology behind it (sse, websockets, long pooling, etc) Indeed, zodios is focused on Rest. And Rest contract is at the center of Zodios design. So any suscription technology can be added alongside zodios.