confirm Exit
Confirms the exit of a member from a room and optionally bans them.
This function emits a socket event to disconnect the user from the specified room and optionally bans them if ban is set to true.
Example:
val options = ConfirmExitOptions(
socket = socketInstance,
localSocket = socketInstance,
member = "JohnDoe",
roomName = "Room123",
ban = true
)
confirmExit(options)
// Disconnects "JohnDoe" from "Room123" and bans them if specified.Content copied to clipboard