Documentation / @super-line/server / MiddlewareInfo
Interface: MiddlewareInfo
Defined in: index.ts:156
Context passed to middleware and lifecycle hooks about the current operation.
Properties
conn?
optionalconn?:Conn<Record<string,ServerMessageDef>,unknown,string,unknown,unknown>
Defined in: index.ts:165
The connection the operation is on, if any (conn.role available). Absent for bus events.
kind
kind:
"subscribe"|"request"|"event"|"connect"|"disconnect"|"heartbeat"
Defined in: index.ts:161
The operation kind. Middleware only ever sees 'request'/'subscribe'; 'event' marks a bus event delivery, and lifecycle kinds mark a lifecycle-hook throw routed to onError.
name
name:
string
Defined in: index.ts:163
The request/topic/event name (the hook name for lifecycle errors).