RTCSctpTransport

The SCTP transport that data channels go over.

class webrtc.interfaces.rtc_sctp_transport.RTCSctpTransport(native_obj=None)

The SCTP transport the data channels of a webrtc.RTCPeerConnection share.

It reports the negotiated limits of the data channels, and the DTLS transport its packets go over.

See MDN: RTCSctpTransport.

Events:

statechange (webrtc.Event) โ€“ state changed.

Events

Handlers are registered with on().

property transport: RTCDtlsTransport

The DTLS transport the SCTP packets go over.

See MDN: RTCSctpTransport/transport.

Type:

webrtc.RTCDtlsTransport

property state: RTCSctpTransportState

Whether the SCTP association is connecting, connected or closed.

See MDN: RTCSctpTransport/state.

Type:

webrtc.RTCSctpTransportState

property max_message_size: float | None

The largest message in bytes webrtc.RTCDataChannel.send() accepts.

Itโ€™s math.inf when thereโ€™s no limit and None while it isnโ€™t known.

See MDN: RTCSctpTransport/maxMessageSize.

Type:

float, optional

property max_channels: int | None

How many data channels can be open at once.

Itโ€™s None until the transport is connected. See MDN: RTCSctpTransport/maxChannels.

Type:

int, optional