Module data

Source
Expand description

/data api bindings

Structs§

ConnectQuery
Query for POST /data/connections
ConnectQueryOption
Query parameter for POST /data/connections
DataConnectionId
Identifier for DataConnection
DataConnectionIdWrapper
Struct just for adapter to adjust JSON format
DataConnectionStatus
Response from GET /data/connections/{data_cnnection_id}/status
DataId
Identifier for source socket of data
DataIdWrapper
Struct just for adapter to adjust JSON format
DcInit
Query parameter for POST /data/connections
RedirectDataParams
Query for PUT /data/connections
RedirectDataResponse
Response from PUT /data/connections

Enums§

DataConnectionEventEnum
Shows DataConnection events.

Functions§

close_data_socket
This function let a WebRTC Gateway close a socket to receive media which will be redirected to neighbour peer.
connect
This function let a WebRTC Gateway establish a DataChannel to neighbour
disconnect
This function let a WebRTC Gateway close a DataChannel
event
This function get a single event from a WebRTC Gateway.
listen_events
This function keep listening events from a WebRTC Gateway. It keep accessing event API endpoint until receiving a CLOSE event or HTTP Error Code.
open_data_socket
This function let a WebRTC Gateway open a socket to receive media which will be redirected to neighbour peer.
redirect
DataConnection is automatically established when neighbour connect to this side. In that case, the connection doesn’t have source and destination port information. This function set the information.
status
This function to get status of DataChannel