PeerToPeerConnection

interface PeerToPeerConnection

An interface representing a connection with a remote peer. A PeerToPeerConnection can send and receive messages, and is connected to another peer.

Functions

Link copied to clipboard
abstract suspend fun receiveCatching(): ChannelResult<String>

Attempts to receive a message from the peer.

Link copied to clipboard
abstract suspend fun sendCatching(message: String): ChannelResult<Unit>

Attempts to send a message to the peer.

Inheritors

Link copied to clipboard