Skip to content

ServiceParams

Defined in: types.ts:39

[key: string]: unknown

optional connection?: Record<string, unknown>

Defined in: types.ts:45

Per-socket connection state. Set by the socket.io transport and persists across calls from the same socket.


optional external?: boolean

Defined in: types.ts:49

True on service:event emissions that did NOT pass through the hook pipeline — e.g. Supabase change-feed re-emissions of direct DB mutations.


optional headers?: Record<string, string>

Defined in: types.ts:43


optional provider?: string

Defined in: types.ts:42


optional query?: Record<string, unknown>

Defined in: types.ts:40


optional rooms?: string | string[]

Defined in: types.ts:47

Rooms to broadcast mutation events to. If set by a before hook, the socket.io transport will broadcast only to these rooms instead of all clients.


optional user?: Record<string, unknown>

Defined in: types.ts:41