@universis/sse
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

@universis/sse

Universis logo

An implementation of server-sent events for Universis api server based on Server-sent events specification

Installation

npm i @universis/sse

Configuration

Register ServerSideEventService under services section of application services:

{
    "services": [
        ...,
        {
            "serviceType": "@universis/sse#ServerSentEventService",
            "strategyType": "@universis/sse#DefaultServerSentEventService"
        }
]

Configure ServerSideEventService under settings/universis/sse section:

{
    "settings": {
        "universis": {
            ...
            "sse": {
                "expirationTimeout": 20
            }
        }
    }
}

The expirationTimeout defines the duration of a server-side event client in minutes. The default value is 20 minutes.

Readme

Keywords

Package Sidebar

Install

npm i @universis/sse

Weekly Downloads

17

Version

1.6.0

License

LGPL-3.0-or-later

Unpacked Size

59.4 kB

Total Files

15

Last publish

Collaborators

  • universis