handle Vote Poll
Handles the voting process for a poll.
The function submits a vote to the server using the specified HandleVotePollOptions.
Example:
val options = HandleVotePollOptions(
pollId = "poll123",
optionIndex = 1,
socket = socketInstance,
showAlert = { message -> Logger.d("HandleVotePoll", message) },
member = "user1",
roomName = "roomA",
updateIsPollModalVisible = { isVisible -> setPollModalVisible(isVisible) }
)
handleVotePoll(options)Content copied to clipboard