Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / / createSseRoutes

Function: createSseRoutes()

ts
function createSseRoutes(deps): Hono<{
  Variables: ServerVariables;
}>;

Defined in: packages/server/src/sse/events.ts:63

Build the SSE event-stream router. Mounts GET /sessions/:id/events (the canonical path documented in the runtime spec); operators that want a different path should mount the router under a custom prefix.

Parameters

ParameterType
depsSseRoutesDeps

Returns

Hono<{ Variables: ServerVariables; }>

Stable