pub struct DcInit {
pub ordered: Option<bool>,
pub maxPacketLifeTime: Option<usize>,
pub maxRetransmits: Option<usize>,
pub protocol: Option<String>,
pub negotiated: Option<bool>,
pub id: Option<usize>,
pub priority: Option<String>,
}
Expand description
Query parameter for POST /data/connections
Shows DataConnection parameters in Browser layer. It’s almost same as browser parameters.
https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel
Fields§
§ordered: Option<bool>
Indicates whether or not the data channel guarantees in-order delivery of messages; the default is true, which indicates that the data channel is indeed ordered.
maxPacketLifeTime: Option<usize>
The amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message.
maxRetransmits: Option<usize>
The maximum number of times the WebRTC Gateway should try to retransmit a message before giving up.
protocol: Option<String>
containing the name of the sub-protocol in use. If no protocol was specified when the data channel was created, then this property’s value is “”.
negotiated: Option<bool>
Indicates whether the RTCDataChannel’s connection was negotiated by the Web app (true) or by the WebRTC layer (false).
id: Option<usize>
ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
priority: Option<String>
Show priority of this channel.