-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Describe the problem
Currently we need to use @tauriApps/plugin-websocket for unidirectional streaming (from server to client). However, there is another web standard specifically for such unidirectional streaming: Server Sent Events (SSE).
Describe the solution you'd like
Would be nice to also have @tauriApps/plugin-sse to support "server sent events".
Especially for mobile applications, SSE is a much more energy-saving alternative. Btw, in contrast to the use of the "web's native implementation", Tauri can even improve SSE communication by
- optionally bypassing a "push proxy" (https://stackoverflow.com/questions/46799463/server-sent-events-sse-connection-loss-on-mobile-phones)
- leaving SSE communication intact for the native application, use the native timer for SSE retry field (instead of the web timer)
- enabling GZIP compression of SSE message
Alternatives considered
No response
Additional context
No response
0x1997, obetame, 2-NOW, Lynndox, gerbil and 9 more
Metadata
Metadata
Assignees
Labels
No labels