[−][src]Function skyway_webrtc_gateway_api::data::disconnect
pub async fn disconnect<'_>(
data_connection_id: &'_ DataConnectionId
) -> Result<(), Error>
This function let a WebRTC Gateway close a DataChannel
Examples
use skyway_webrtc_gateway_api::data::disconnect; use skyway_webrtc_gateway_api::prelude::DataConnectionId; async fn example() { let data_connection_id = DataConnectionId::new("dc-example"); let result = disconnect(&data_connection_id).await; }