SseRoutes
@rotorsoft/act-root / act-http/src/hono / SseRoutes
Type Alias: SseRoutes<TApp, TBase>
SseRoutes<
TApp,TBase> = { [N in AppStateNames<TApp> as MergePath<TBase, `/sse/${N}`>]: { $get: { input: { query: { stream: string } }; output: {}; outputFormat: "body"; status: 200 } | { input: { query: { stream: string } }; output: ApiError; outputFormat: "json"; status: 400 | 401 | 503 } } }
Defined in: libs/act-http/src/hono/index.ts:434
One GET <basePath>/sse/<state>?stream=<id> per state of TApp, with
sse: an event stream on 200, ApiError on an error status.
Type Parameters
TApp
TApp
TBase
TBase extends string