Documentation / @super-line/server / MiddlewareInfo
Interface: MiddlewareInfo
Defined in: index.ts:119
Context passed to middleware and lifecycle hooks about the current operation.
Properties
conn?
optionalconn?:Conn<Record<string,ServerMessageDef>,unknown,string,unknown>
Defined in: index.ts:125
The connection the operation is on, if any (conn.role available). Absent for bus events.
kind
kind:
"subscribe"|"request"|"event"
Defined in: index.ts:121
Whether this is a request, a topic subscribe, or a bus event delivery.
name
name:
string
Defined in: index.ts:123
The request/topic/event name.