Skip to content

Feature

Defined in: src/features/feature.ts:58

A protocol feature: owns the inbound wire codes it reacts to. Feature modules also export their own encode* / decode* functions and session-facing functions; those are wired explicitly by the session.

readonly handles: readonly number[];

Defined in: src/features/feature.ts:60

Inbound RESP_* / PUSH_* codes this feature decodes & reacts to.

handle(
code,
frame,
ctx): void;

Defined in: src/features/feature.ts:62

React to an inbound frame whose code is one of handles.

ParameterType
codenumber
frameBuffer
ctxFeatureContext

void