lib-jitsi-meet
    Preparing search index...
    Index

    Constructors

    Methods

    • Handles a message for polls.

      Parameters

      • payload: any

        Arbitrary data.

      Returns void

    • Sends a message to the polls component and waits for an error reply to it.

      Parameters

      • data: object

        The message.

      Returns Promise<void>

      Rejected with the error condition of the reply, resolved when there is no reply within POLLS_REPLY_TIMEOUT.

    • Sends answers for a poll.

      Parameters

      • pollId: string
      • answers: boolean[]

      Returns Promise<void>

      Rejected with the error condition (e.g. 'not-allowed' for a closed poll) when the polls component rejects the answers, resolved otherwise. See POLLS_REPLY_TIMEOUT. Before this returned nothing: a caller that ignores the result now gets an unhandled rejection when an answer is refused.

    • Closes a poll, thus it does not take answers anymore. The server accepts it from the creator of the poll and from a moderator.

      Parameters

      • pollId: string

        The id of the poll.

      Returns Promise<void>

      Rejected with the error condition (e.g. 'not-allowed' when the local participant is neither the creator nor a moderator) when the polls component rejects the close, resolved otherwise. See POLLS_REPLY_TIMEOUT. Handle the rejection, or it is reported as unhandled.

    • Creates and sends a new poll.

      Parameters

      • pollId: string
      • question: string
      • answers: { name: string }[]
      • options: IPollOptions = {}

        The options of the poll.

      Returns void

    • Whether polls is supported on backend.

      Returns boolean

      whether polls is supported on backend.