Skip to content

Documentation / @agentick/client / ChannelEvent

Interface: ChannelEvent<T>

Defined in: shared/src/protocol.ts:17

Channel event structure for all client-server communication.

Type Parameters

T

T = unknown

Properties

channel

channel: string

Defined in: shared/src/protocol.ts:19

Channel name (e.g., 'session:events', 'todo_list')


id?

optional id: string

Defined in: shared/src/protocol.ts:25

Request/response correlation ID


metadata?

optional metadata: ChannelEventMetadata

Defined in: shared/src/protocol.ts:27

Event metadata


payload

payload: T

Defined in: shared/src/protocol.ts:23

Event payload


type

type: string

Defined in: shared/src/protocol.ts:21

Event type within the channel

Released under the ISC License.