ClientToServer

sealed class ClientToServer : SignalingMessage

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

Types

Link copied to clipboard
data class Forward(val to: PeerIdentifier, val message: ClientToClientMessage) : SignalingMessage.ClientToServer

Indicates that the server should relay this ICE candidate to the given peer.

Functions

Link copied to clipboard
abstract fun toServerToClient(from: PeerIdentifier): SignalingMessage.ServerToClient

Transforms this ClientToServer message to a ServerToClient message, using the provided PeerIdentifier.

Properties

Link copied to clipboard
abstract val to: PeerIdentifier

The PeerIdentifier of the peer to which the message should be forwarded.

Inheritors

Link copied to clipboard