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
publishDone
boolean
Returns
SwitchFrom
Properties
mode
readonlymode:SwitchMode
publishDone
readonlypublishDone:boolean
requestId
readonlyrequestId:bigint
TYPE
readonlystaticTYPE:SwitchFrom=MessageParameterType.SwitchFrom
Methods
toKeyValuePair()
toKeyValuePair():
KeyValuePair
Returns
Implementation of
fromKeyValuePair()
staticfromKeyValuePair(pair):SwitchFrom|undefined
Parameters
pair
Returns
SwitchFrom | undefined