[−][src]Function skyway_webrtc_gateway_api::media::disconnect
pub async fn disconnect<'_>(
media_connection_id: &'_ MediaConnectionId
) -> Result<(), Error>
Have WebRTC Gateway close a MediaConnection
It's bindings for DELETE /media/connections/{media_connection_id}.
Examples
use skyway_webrtc_gateway_api::media::disconnect; use skyway_webrtc_gateway_api::prelude::MediaConnectionId; async fn example() { let media_connection_id = MediaConnectionId::new("mc-example"); let result = disconnect(&media_connection_id).await; }