Class StreamMessage<T>

Type Parameters

  • T = unknown

Hierarchy

  • StreamMessage

Constructors

Properties

contentType: JSON
encryptionType: EncryptionType
groupKeyId: null | string
messageId: MessageID
messageType: StreamMessageType
newGroupKey: null | EncryptedGroupKey
parsedContent?: T
prevMsgRef: null | MessageRef
serializedContent: string
signature: string
LATEST_VERSION: number

Methods

  • Returns string

  • Parameters

    • parsedContent: false

    Returns string

  • Parameters

    • parsedContent: true

    Returns T

  • Returns string

  • Lazily parses the content to JSON

    Returns T

  • Returns number

  • Returns string

  • Returns number

  • Returns number

  • Parameters

    • Optional version: number

    Returns string

  • Takes a serialized representation (array or string) of a message, and returns a StreamMessage instance.

    Parameters

    • msg: string | any[]

    Returns StreamMessage<unknown>

  • Returns number[]

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • streamMessageVersion: number

    Returns boolean

Generated using TypeDoc