ServerToClient

sealed class ServerToClient : SignalingMessage

A marker interface for messages sent from the server to the browser.

Types

Link copied to clipboard
data class GotMessage(val from: PeerIdentifier, val message: ClientToClientMessage) : SignalingMessage.ServerToClient

Indicates an ICE candidate to use when communicating with a given client.

Link copied to clipboard
data class PeerJoined(val peer: PeerIdentifier) : SignalingMessage.ServerToClient

Indicates that a peer has joined the collaboration session. The client should attempt to connect to this new peer.

Link copied to clipboard
data class PeerLeft(val peer: PeerIdentifier) : SignalingMessage.ServerToClient

Indicates that a peer has left the collaboration session. The client should stop collaboration with the provided peer.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard