SSE Client

SSE Client (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 26 June 2023 by valantic LCS
SSE Client

SSE Client (ODC)

Details
Detailed Description

Server Sent Events allows for HTTP Client Requests (through a Rest API) to be persisted for Event Streaming as per protocol1.

The SSE Client implements the Event Source JS Interface containing the Server Sent Event API, per protocol2.

It also provides Microsoft's Fetch-based implementation3 for more granular/control options.


With this library you can connect your apps to a Server Sent Events hub.

Effectively, no third parties are required for Server Push/Messaging.


This ODC Asset was migrated by Nuno Dâmaso


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://github.com/Azure/fetch-event-source



Limitations
  • IOS Native apps are currently not supported
  • Background Notifications on both Mobile and PWA are not supported. If this is a deal breaker, please use Apple's APN/ Google's FCM approaches (Firebase, OneSignal, etc...) There is now the possibility to address this in PWA apps using Microsoft's Fetch Event Source but it has not been tested/worked on.
  • When connecting to Hubs over Http/1, the browser limits concurrent connections to a maximum of 6 - each SSE connection takes one slot. Please check for HTTP/2/3 from your server if this is a limitation.