onJoin

fun onJoin(from: String?, to: String?, sessionId: String, socket: WebSocketSession)

Handles the join event of a P2P member.

Parameters

from

The username of the member initiating the join.

to

The username of the member the join is directed to.

sessionId

The session ID of the WebSocket connection.

socket

The WebSocket session.

Throws

if a member with the same username already exists.