The SSE Server Hub allows for HTTP Client Requests (through a Rest Expose API) to be persisted for Event Streaming as per protocol1. This is accomplished by switching the mime-type response to the appropriate text/event-stream and flushing the messages complying to the event source format2.
The SSE Client implements the Event Source JS Interface containing the Server Sent Event API, also per protocol3.
Effectively, no third parties are required for Server Push/Messaging.
1 https://html.spec.whatwg.org/multipage/server-sent-events.html
2 https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events
3 https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
EventSource / MSFTFetchEventSource- This block listens to a specific HUB Channel- It is possible to further filter the Channel by its events- A Token GUID is issued every time a new connection is established and it uniquely identifies the connection- The block is initiated when the SSESubscribeURL is populated. Please refer to further examples @ the examples app- Authentication can be implemented by passing a token together with the URL as a parameter, and validating it either on the onRequest hook or with the custom onAuthentication hook, using SSL if using native EventSource.You can also use Microsoft's FetchEventSource block that allows custom headers to be passed instead of the native approach.Please refer to further examples @ the examples app- The SSE EventStream interface ensures resilience through an auto-connect on disconnect, so everything is handled in case of disconnection. Have in mind though, that the same URL will be used.
An example Chat App is included in this component for a functional chat.
For further details, documentation and examples, please check the Related Components.