onJoin

fun onJoin(username: String, sessionId: String, socket: WebSocketSession)

Handles the join event of a room member.

Parameters

username

The username of the member.

sessionId

The session ID of the WebSocket connection.

socket

The WebSocket session.

Throws

if a member with the same username already exists.