Forward

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

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

Constructors

Link copied to clipboard
fun Forward(to: PeerIdentifier, message: ClientToClientMessage)

Functions

Link copied to clipboard
open override fun toServerToClient(from: PeerIdentifier): SignalingMessage.ServerToClient.GotMessage

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

Properties

Link copied to clipboard
val message: ClientToClientMessage

the message to be transmitted.

Link copied to clipboard
open override val to: PeerIdentifier

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