Add EventSource and Streams Standard examples #2136
Closed
guest271314
started this conversation in
Feature requests
Replies: 1 comment 1 reply
-
https://mongoose.ws/documentation/tutorials/webui-push/#pushing-live-data-on-http-connections something like this on match URI
and like this on broadcast message
The frontend is all yours |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using
EventSource
https://html.spec.whatwg.org/multipage/server-sent-events.html#the-eventsource-interface we can stream data to the client browser using named events. Streams https://streams.spec.whatwg.org/#rs-class provides a means to send a potentially indefinite stream response to the client.For example, for and
EventSource
stream using aServiceWorker
as the server we can do something likeclient side in the browser
and to serve a
ReadableStream
as a responseclient side using
fetch
Beta Was this translation helpful? Give feedback.
All reactions