Expand description
/data api bindings
Structs§
- Connect
Query - Query for POST /data/connections
- Connect
Query Option - Query parameter for POST /data/connections
- Data
Connection Id - Identifier for DataConnection
- Data
Connection IdWrapper - Struct just for adapter to adjust JSON format
- Data
Connection Status - Response from GET /data/connections/{data_cnnection_id}/status
- DataId
- Identifier for source socket of data
- Data
IdWrapper - Struct just for adapter to adjust JSON format
- DcInit
- Query parameter for POST /data/connections
- Redirect
Data Params - Query for PUT /data/connections
- Redirect
Data Response - Response from PUT /data/connections
Enums§
- Data
Connection Event Enum - 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