Open gedw99 opened 2 months ago
I'd also like to see SSE support. It's simply more compatible with the web's protocols and infrastructure - easier to proxy (in the backend, in cloudflare, in service workers etc...)
With the http support in , it may open up for web transport , as opposed to sse .
the only blocker is , drum roll , Apple :
Is your feature request related to a problem?
SSE support
https://github.com/surrealdb/surrealdb.go/tree/cbor-encoding-and-http-connection-engine Adds http , and embeds surreal db ( from what I can see ).
this opens the door to support SSE ( with the existing Web sockets ) for real time updates which makes it way better for mobiles and browsers on mobile due to reducing battery drain .
it also make connection management much easier .
it also allows tab synchronisation and broadcast options later on since we can maintain presence .
@remade i am adding here since it is his code. I walked the code and it looks really good . Nice work !
Describe the solution
Add SSE . Then we can pick SSE or WS.
Alternative methods
it also opens the door to Web Transport later . Safari is the last hold out not supporting web transport .
SurrealDB version
2
Contact Details
See my profile . Telegram
Is there an existing issue for this?
Code of Conduct