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.
Properties
Section titled “Properties”handles
Section titled “handles”readonly handles: readonly number[];Defined in: src/features/feature.ts:60
Inbound RESP_* / PUSH_* codes this feature decodes & reacts to.
Methods
Section titled “Methods”handle()
Section titled “handle()”handle( code, frame, ctx): void;Defined in: src/features/feature.ts:62
React to an inbound frame whose code is one of handles.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
code | number |
frame | Buffer |
ctx | FeatureContext |
Returns
Section titled “Returns”void