Class Conversation

Index

Accessors

createdAt

  • get (): string
  • Returns string

customData

  • get (): any
  • set (value: any): void
  • Returns any

  • Parameters

    • value: any

    Returns void

distinct

  • get (): boolean
  • set (value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

enablePublicJoin

  • get (): boolean
  • set (value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

lastMessage

lastSeq

  • get (): any
  • Returns any

lastUpdate

  • get (): any
  • Returns any

moderators

  • get (): Array<string>
  • set (value: Array<string>): void
  • Returns Array<string>

  • Parameters

    • value: Array<string>

    Returns void

participants

title

  • get (): string
  • set (value: string): void
  • Returns string

  • Parameters

    • value: string

    Returns void

uuid

  • get (): string
  • set (uuid: string): void
  • Returns string

  • Parameters

    • uuid: string

    Returns void

Methods

readMessage

  • readMessage(message: Message): void
  • Mark message as readed. Max send rate 500ms.

    Parameters

    Returns void

remove

  • remove(): void
  • Remove current conversation

    Returns void

sendMessage

typing

  • typing(): boolean
  • Typing notify. Have 10s debounce lock.

    Returns boolean

    return false if debounce lock active

update

  • update(): void
  • Returns void