Skip to content

SessionOptions

SessionOptions<In, Out, Key> = object

Defined in: packages/net-core/src/session.ts:29

Construction options for Session.

In

Out

Key = unknown

codec: Codec<In, Out>

Defined in: packages/net-core/src/session.ts:34

Decoder and encoder for this protocol.


optional initialCapacity?: number

Defined in: packages/net-core/src/session.ts:43

Initial receive arena size. Defaults to 8 KiB.


maxBufferSize: number

Defined in: packages/net-core/src/session.ts:40

Hard ceiling, in bytes, on undecoded received data. Required; see FrameLinkOptions.maxBufferSize.


optional registry?: ExchangeRegistry<In, Key>

Defined in: packages/net-core/src/session.ts:51

Correlation strategy for inbound frames. Defaults to strict FIFO, which suits ordered text protocols; supply a KeyedRegistry for protocols that answer out of order, or a wider ScanningRegistry for uncorrelated ones.


transport: Transport

Defined in: packages/net-core/src/session.ts:31

Carrier for the framed bytes.