Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/channels / / ChannelInboundHandler

Type Alias: ChannelInboundHandler

ts
type ChannelInboundHandler = (context) => Promise<
  | ChannelReply
| undefined>;

Defined in: packages/channels/src/gateway.ts:69

The application seam: invoked once per authorized inbound message, typically running an agent for route.agentId / route.sessionKey. A returned reply is delivered to the peer; return undefined to stay silent. Errors are contained (counted + warned), never fatal to the gateway.

Parameters

ParameterType
contextChannelInboundContext

Returns

Promise< | ChannelReply | undefined>

Stable