host_extensions/protocol/
channel.rs1pub fn media_signal_channel(app_id: &str, from: &str, to: &str) -> String {
6 format!("{app_id}-media-from-{from}-to-{to}")
7}
8
9pub fn media_ring_channel(app_id: &str, peer_id: &str) -> String {
11 format!("{app_id}-media-ring-{peer_id}")
12}
13
14pub fn data_offer_channel(app_id: &str, target_peer: &str) -> String {
16 format!("{app_id}-data-offer-to-{}", target_peer.to_lowercase())
17}
18
19pub fn data_answer_channel(app_id: &str, target_peer: &str) -> String {
21 format!("{app_id}-data-answer-to-{}", target_peer.to_lowercase())
22}