broadcastExcept

fun broadcastExcept(sender: SocketSession, message: String, room: String? = sender.room)

Broadcasts a message to all sessions in a room, excluding the sender's session.

Parameters

sender

The session to exclude from the broadcast.

message

The message to broadcast.

room

The name of the room (default is the sender's room).