P2PMember

data class P2PMember(val from: String?, val to: String?, val sessionId: String, val socket: WebSocketSession)

Represents a member in a peer-to-peer messaging system.

Constructors

Link copied to clipboard
constructor(from: String?, to: String?, sessionId: String, socket: WebSocketSession)

Properties

Link copied to clipboard
val from: String?

the sender of the message.

Link copied to clipboard

the unique session ID of the member.

Link copied to clipboard
val socket: WebSocketSession

the WebSocket session associated with the member.

Link copied to clipboard
val to: String?

the recipient of the message.