handle End Poll
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.
Example:
val options = HandleEndPollOptions(
pollId = "poll123",
socket = socketInstance,
showAlert = { message -> Logger.d("HandleEndPoll", message) },
roomName = "roomA",
updateIsPollModalVisible = { isVisible -> setIsPollModalVisible(isVisible) }
)
handleEndPoll(options)Content copied to clipboard