At your Client Application open the module dependencies (ctrl+q), search for the SSE Client and add the EventSource WebBlock to your Screen.
Fill in the SSE URL and create the mandatory Event Handler to start receiving messages.
That's it!
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.