pub async fn close_data_socket(data_id: &DataId) -> Result<(), Error>
Expand description

This function let a WebRTC Gateway close a socket to receive media which will be redirected to neighbour peer.

Examples

use skyway_webrtc_gateway_api::data::close_data_socket;
use skyway_webrtc_gateway_api::prelude::{DataId, SerializableId};

async fn example() {
    let data_id = DataId::try_create("da-50a32bab-b3d9-4913-8e20-f79c90a6a211").unwrap();
    let result = close_data_socket(&data_id).await;
}