Skip to content

Interface: ChannelConnection

Defined in: packages/aiui-claude-channel/src/channel.ts:209

The protocol state of one client connection.

Methods

close()

close(): Promise<void>

Defined in: packages/aiui-claude-channel/src/channel.ts:223

The transport connection closed. Every thread still open (i.e. one that never fin'd) gets its processor's StreamProcessor.onClose, so per-thread resources are released rather than leaked. Runs after any in-flight frame (it chains on the same serialization queue). Idempotent-ish: a second call simply finds no open threads. Drive it from the transport's connection-close (see web.ts).

Returns

Promise<void>


handleFrame()

handleFrame(frame): Promise<ChannelResponse>

Defined in: packages/aiui-claude-channel/src/channel.ts:214

Handle one raw binary frame from the client, resolving with the reply to send back. Frames are processed strictly in call order, one at a time.

Parameters

frame

Uint8Array

Returns

Promise<ChannelResponse>