Server-Sent Event
Last updated
Was this helpful?
Last updated
Was this helpful?
With server-sent events, it's possible for a server to send new data to a web page at any time, by pushing messages to the web page. These incoming messages can be treated as + data inside the web page.
It is similar with web socket, but 1-way direction, from server to client
You'll need a bit of code on the server to stream events to the front-end, but the client side code works almost identically to in part of handling incoming events.