Handles a message for polls.
Arbitrary data.
Sends a message to the polls component and waits for an error reply to it.
The message.
Rejected with the error condition of the reply, resolved when there is no reply within POLLS_REPLY_TIMEOUT.
Sends answers for a poll.
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.
The id of the poll.
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.
Stops listening for events.
Whether polls is supported on backend.
whether polls is supported on backend.
Constructs polls for a room.