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§
- Ring
Payload - Payload for ring (incoming call) notifications.
- Signal
Payload - 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).