Crate matchbox_socket

Source
Expand description

../README.md

Re-exports§

pub use async_trait;

Structs§

ChannelConfig
Configuration options for a data channel See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel
PeerId
The format for a peer signature given by the signaling server
RtcIceServerConfig
Configuration options for an ICE server connection. See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer#example
WebRtcChannel
Used to send and receive packets on a given WebRTC channel. Must be created as part of a WebRtcSocket.
WebRtcSocket
Contains a set of WebRtcChannels and connection metadata.
WebRtcSocketBuilder
Builder for WebRtcSockets.

Enums§

ChannelError
An error that can occur when getting a socket’s channel through get_channel, take_channel or try_update_peers.
Error
Errors that can happen when using Matchbox sockets.
PeerSignal
Signals go from peer to peer via the signaling server
PeerState
The state of a connection to a peer
SignalingError
An error that can occur with WebRTC messaging. See [Signaller].

Traits§

Signaller
A signalling implementation.
SignallerBuilder
A builder that constructs a new Signaller from a room URL.

Type Aliases§

MessageLoopFuture
A future which runs the message loop for the socket and completes when the socket closes or disconnects
Packet
The raw format of data being sent and received.
PeerEvent
Events go from signaling server to peer
PeerRequest
Requests go from peer to signaling server