Creates the SsePlugin.
Registers an ISseService under CAPABILITIES.SSE. Single instance only (duplicate registration throws at startup via the registry).
ISseService
CAPABILITIES.SSE
Optional
Plugin configuration
The plugin instance
import { SsePlugin } from '@setu-ts/sse-plugin';app.register(SsePlugin({ heartbeatMs: 15000 })); Copy
import { SsePlugin } from '@setu-ts/sse-plugin';app.register(SsePlugin({ heartbeatMs: 15000 }));
0.1.0
Creates the SsePlugin.
Registers an
ISseServiceunderCAPABILITIES.SSE. Single instance only (duplicate registration throws at startup via the registry).