Support Server Side Events SSE #59
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
help wanted
Extra attention is needed
Server Sent Events are a way for servers to send events to browsers. It provides a higher-level mechanism for communication between the server and the browser than websockets.
If you want an element to respond to a Server Sent Event via n55, you need to do two things:
Define an SSE source. To do this, add a n55-see attribute on a parent element with a connect declaration that specifies the URL from which Server Sent Events will be received.
Define elements that are descendants of this element that are triggered by server sent events using the n55-trigger="sse:<event_name>" syntax
Here is an example:
The text was updated successfully, but these errors were encountered: