{{APIRef("WebRTC")}}{{SeeCompatTable}}
The RTCSctpTransport
interface provides information which describes a Stream Control Transmission Protocol ({{Glossary("SCTP")}}) transport. This provides information about limitations of the transport, but also provides a way to access the underlying Datagram Transport Layer Security ({{Glossary("DTLS")}}) transport over which SCTP packets for all of an {{domxref("RTCPeerConnection")}}'s data channels are sent and received.
You don't create {{domxref("RTCSctpTransport")}} objects yourself; instead, you get access to the RTCSctpTransport
for a given RTCPeerConnection
through its {{domxref("RTCPeerConnection.sctp", "sctp")}} property.
Possibly the most useful property on this interface is its {{domxref("RTCSctpTransport.maxMessageSize", "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.
Properties
The RTCSctpTransport
interface doesn't inherit any properties.
- {{domxref("RTCSctpTransport.maxMessageSize")}} {{ReadOnlyInline}}
- An integer value indicating the maximum size, in bytes, of a message which can be sent using the {{domxref("RTCDataChannel.send()")}} method.
- {{domxref("RTCSctpTransport.transport")}} {{ReadOnlyInline}}
- An {{domxref("RTCDtlsTransport")}} object representing the {{Glossary("DTLS")}} transport used for the transmission and receipt of data packets.
Methods
The RTCSessionDescription
doesn't inherit any methods and has no methods of its own.
Example
TBD
Specifications
Specification | Status | Comment |
---|---|---|
{{ SpecName('WebRTC 1.0', '#rtcsctptransport-interface', 'RTCSctpTransport') }} | {{Spec2('WebRTC 1.0')}} | Initial definition. |
Browser compatibility
{{ CompatibilityTable }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{ CompatUnknown }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatUnknown }} | {{ CompatUnknown }} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{ CompatUnknown }} | {{ CompatUnknown }} | {{ CompatNo }} | {{ CompatNo }} | {{ CompatUnknown }} | {{ CompatUnknown }} |
See also
- WebRTC
- {{domxref("RTCPeerConnection")}}
- {{domxref("RTCPeerConnection.sctp")}}