@refinio/one.models
    Preparing search index...
    Index

    Constructors

    Properties

    onNewMessageReceived: OEvent<() => void> = ...

    Notify the user whenever a new chat message is received.

    topic: Topic

    Methods

    • Sends the message in the chat room.

      Parameters

      • message: string
      • Optionalauthor: SHA256IdHash<Person>
      • OptionalchannelOwner: null | SHA256IdHash<Person>

      Returns Promise<void>

    • Sends the message with attachments in the chat room.

      Parameters

      • message: string
      • attachments: File[]

        array of attached files

      • Optionalauthor: SHA256IdHash<Person>
      • OptionalchannelOwner: null | SHA256IdHash<Person>

      Returns Promise<void>

    • Sends the message with hash data in the chat room.

      Parameters

      • message: string
      • attachments: SHA256Hash[]

        array of attached hashes

      • Optionalauthor: SHA256IdHash<Person>
      • OptionalchannelOwner: null | SHA256IdHash<Person>

      Returns Promise<void>

    • Sends the message with attachments in the chat room.

      Parameters

      • message: string
      • attachments: { original: File; thumbnail: File }[]

        array of attached files

      • Optionalauthor: SHA256IdHash<Person>
      • OptionalchannelOwner: null | SHA256IdHash<Person>

      Returns Promise<void>