Package-level declarations
Types
Defines options for creating a poll in a room.
Type definition for handling poll creation.
Defines options for handling the end of a poll.
Type definition for handling poll ending.
Defines options for handling a poll vote.
Type definition for handling poll voting.
Defines options for toggling the poll modal visibility.
Type definition for the function that toggles the poll modal visibility.
Defines options for updating poll information.
Type definition for the function that updates poll information.
Type definition for updating poll modal visibility.
Functions
Handles the creation of a poll by emitting a "createPoll" event with the provided details. Shows an alert based on the success or failure of the operation.
Handles ending a poll by emitting an "endPoll" event through the provided socket. Displays an alert based on the success or failure of the operation.
Handles the voting process for a poll.
Toggles the visibility of the poll modal based on the current state.
Updates the poll state based on the provided options.