Class RTCSctpTransport
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol (SCTP) transport. This provides information about limitations of the transport, but also provides a way to access the underlying Datagram Transport Layer Security (DTLS) transport over which SCTP packets for all of an RTCPeerConnection's data channels are sent and received.
[Value("RTCSctpTransport")]
public class RTCSctpTransport : EventTarget
- Inheritance
-
RTCSctpTransport
- Inherited Members
Remarks
You don't create RTCSctpTransport objects yourself; instead, you get access to the RTCSctpTransport for a given RTCPeerConnection through its Sctp property.
Possibly the most useful property on this interface is its maxMessageSize property, which you can use to determine the upper limit on the size of messages you can send over a data channel on the peer connection.
Constructors
RTCSctpTransport()
public RTCSctpTransport()
Properties
MaxChannels
The maxChannels read-only property of the RTCSctpTransport interface indicates the maximum number of RTCDataChannel objects that can be opened simultaneously.
[Value("maxChannels")]
public ushort? MaxChannels { get; }
Property Value
- ushort?
An integer value indicating the maximum number of RTCDataChannel objects that can be opened simultaneously, or
nullbefore the SCTP transport goes into the "connected" state.
Remarks
MaxMessageSize
The maxMessageSize read-only property of the RTCSctpTransport interface indicates the maximum size of a message that can be sent using the Send(string) method.
[Value("maxMessageSize")]
public double MaxMessageSize { get; }
Property Value
- double
An integer value giving the maximum size, in bytes, of a message which can be sent using the Send(string) method.
Remarks
Onstatechange
[Value("onstatechange")]
public EventHandlerNonNull Onstatechange { get; set; }
Property Value
State
The state read-only property of the RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol ({{Glossary("SCTP")}}) transport state.
[Value("state")]
public RTCSctpTransportState State { get; }
Property Value
- RTCSctpTransportState
A string whose value is one of the following:
Remarks
Transport
The transport read-only property of the RTCSctpTransport interface returns a RTCDtlsTransport object representing the {{Glossary("DTLS")}} transport used for the transmission and receipt of data packets.
[Value("transport")]
public RTCDtlsTransport Transport { get; }
Property Value
- RTCDtlsTransport
A RTCDtlsTransport object representing the {{Glossary("DTLS")}} transport used for the transmission and receipt of data packets.