Skip to content

Class: PublishDone ​

Constructors ​

Constructor ​

new PublishDone(statusCode, streamCount, errorReason): PublishDone

Parameters ​

statusCode ​

PublishDoneStatusCode

streamCount ​

bigint

errorReason ​

ReasonPhrase

Returns ​

PublishDone

Properties ​

errorReason ​

readonly errorReason: ReasonPhrase


statusCode ​

readonly statusCode: PublishDoneStatusCode


streamCount ​

readonly streamCount: bigint


UNKNOWN_STREAM_COUNT ​

readonly static UNKNOWN_STREAM_COUNT: bigint

The Stream Count a publisher sends when it cannot name the exact number of streams it opened. Receivers fall back on a timeout to end the subscription.

Methods ​

getType() ​

getType(): ControlMessageType

Returns ​

ControlMessageType


serialize() ​

serialize(): FrozenByteBuffer

Returns ​

FrozenByteBuffer


new() ​

static new(statusCode, streamCount, errorReason): PublishDone

Parameters ​

statusCode ​

PublishDoneStatusCode

streamCount ​

bigint

errorReason ​

ReasonPhrase

Returns ​

PublishDone


parsePayload() ​

static parsePayload(buf): PublishDone

Parameters ​

buf ​

BaseByteBuffer

Returns ​

PublishDone