Skip to main content

Class: StreamMessage

Implements

Constructors

constructor

new StreamMessage(«destructured»)

Parameters

NameType
«destructured»StreamMessageOptions

Properties

content

Readonly content: Uint8Array

Implementation of

StreamMessageOptions.content


contentType

Readonly contentType: ContentType

Implementation of

StreamMessageOptions.contentType


encryptionType

Readonly encryptionType: EncryptionType

Implementation of

StreamMessageOptions.encryptionType


groupKeyId

Optional Readonly groupKeyId: string

Implementation of

StreamMessageOptions.groupKeyId


messageId

Readonly messageId: MessageID

Implementation of

StreamMessageOptions.messageId


messageType

Readonly messageType: StreamMessageType

Implementation of

StreamMessageOptions.messageType


newGroupKey

Optional Readonly newGroupKey: EncryptedGroupKey

Implementation of

StreamMessageOptions.newGroupKey


prevMsgRef

Optional Readonly prevMsgRef: MessageRef

Implementation of

StreamMessageOptions.prevMsgRef


signature

Readonly signature: Uint8Array

Implementation of

StreamMessageOptions.signature


signatureType

Readonly signatureType: SignatureType

Implementation of

StreamMessageOptions.signatureType

Methods

getMessageRef

getMessageRef(): MessageRef

Returns

MessageRef


getMsgChainId

getMsgChainId(): string

Returns

string


getParsedContent

getParsedContent(): Record\<string, unknown> | unknown[] | Uint8Array

Returns

Record\<string, unknown> | unknown[] | Uint8Array


getPublisherId

getPublisherId(): EthereumAddress

Returns

EthereumAddress


getSequenceNumber

getSequenceNumber(): number

Returns

number


getStreamId

getStreamId(): StreamID

Returns

StreamID


getStreamPartID

getStreamPartID(): StreamPartID

Returns

StreamPartID


getStreamPartition

getStreamPartition(): number

Returns

number


getTimestamp

getTimestamp(): number

Returns

number


isAESEncrypted

Static isAESEncrypted(msg): msg is StreamMessageAESEncrypted

Parameters

NameType
msgStreamMessage

Returns

msg is StreamMessageAESEncrypted