Class: StreamMessage
Implements
Constructors
constructor
• new StreamMessage(«destructured»
)
Parameters
Name | Type |
---|---|
«destructured» | StreamMessageOptions |
Properties
content
• Readonly
content: Uint8Array
Implementation of
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
getMsgChainId
▸ getMsgChainId(): string
Returns
string
getParsedContent
▸ getParsedContent(): Record
\<string
, unknown
> | unknown
[] | Uint8Array
Returns
Record
\<string
, unknown
> | unknown
[] | Uint8Array
getPublisherId
▸ getPublisherId(): EthereumAddress
Returns
getSequenceNumber
▸ getSequenceNumber(): number
Returns
number
getStreamId
▸ getStreamId(): StreamID
Returns
getStreamPartID
▸ getStreamPartID(): StreamPartID
Returns
getStreamPartition
▸ getStreamPartition(): number
Returns
number
getTimestamp
▸ getTimestamp(): number
Returns
number
isAESEncrypted
▸ Static
isAESEncrypted(msg
): msg is StreamMessageAESEncrypted
Parameters
Name | Type |
---|---|
msg | StreamMessage |
Returns
msg is StreamMessageAESEncrypted