Skip to main content

Module protocol

Module protocol 

Source
Expand description

Media & data signaling protocol constants.

Shared between host-rs (native) and dotli (WASM) to ensure interop. Contains only pure functions with no platform-specific dependencies.

Modules§

signal_type
Signal type constants used in the { type, data } envelope.

Structs§

RingPayload
Payload for ring (incoming call) notifications.
SignalPayload
Envelope for media signaling messages (offer, answer, ICE candidate, hangup).

Constants§

PEER_ID_HEX_LEN
Number of hex characters used from the public key.
PEER_ID_PREFIX
Prefix applied to peer IDs derived from statement store public keys.

Functions§

data_answer_channel
Data answer channel (receiver → initiator).
data_offer_channel
Data offer channel (initiator → receiver).
format_peer_id
Format a peer ID from a hex-encoded public key.
is_offerer
Determine which peer is the offerer (creates the SDP offer).
media_ring_channel
Ring channel for incoming call notifications.
media_signal_channel
Signaling channel for directed media signals (offer/answer/ICE).