Creating a poll
A new poll can be created using the
create method from the
dyteClient.polls object. The
method accepts the following params.
|question||string||-||yes||The question that is to be voted for.|
|options||string||-||yes||The options of the poll.|
|anonymous||boolean||-||yes||If true, the poll votes are anonymous.|
|hideVotes||boolean||-||yes||If true, the votes on the poll are hidden.|
The following snippet creates a poll where votes are anonymous.
question: "Are you an early bird or a night owl?",
options: ["Early bird", "Night owl"],