vote

open override fun vote(pollId: String, options: List<Int>, votes: List<Int>)

Casts a vote on a poll, delegating to the underlying real-time connection.

Used internally by Element.answer rather than called directly.

Parameters

pollId

The identifier of the poll being voted on.

options

The indices of the selected answer options.

votes

The number of votes assigned to each corresponding option in options.