Skip to content

Class: SwitchFrom ​

Identifies the subscription being replaced by a switch request. The value is two varints followed by a flags byte: bit 7 (MSB) is Publish Done; bits 0 through 6 are reserved and must be zero.

Implements ​

Constructors ​

Constructor ​

new SwitchFrom(requestId, mode, publishDone): SwitchFrom

Parameters ​

requestId ​

bigint

mode ​

SwitchMode

publishDone ​

boolean

Returns ​

SwitchFrom

Properties ​

mode ​

readonly mode: SwitchMode


publishDone ​

readonly publishDone: boolean


requestId ​

readonly requestId: bigint


TYPE ​

readonly static TYPE: SwitchFrom = MessageParameterType.SwitchFrom

Methods ​

toKeyValuePair() ​

toKeyValuePair(): KeyValuePair

Returns ​

KeyValuePair

Implementation of ​

Parameter.toKeyValuePair


fromKeyValuePair() ​

static fromKeyValuePair(pair): SwitchFrom | undefined

Parameters ​

pair ​

KeyValuePair

Returns ​

SwitchFrom | undefined