Function create

Source
pub async fn create<'a>(
    api_key: impl Into<String>,
    domain: impl Into<String>,
    peer_id: PeerId,
    turn: bool,
) -> Result<PeerInfo, Error>
Expand description

Request to create Peer.

It’s bindings for POST /peers

API

Notice: This api call does not guarantee that WebRTC Gateway creates a Peer Object successfully. You need to wait OPEN event This function returns PeerInfo just for starting receiving events