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.RTCPeerConnectionshare.It reports the negotiated limits of the data channels, and the DTLS transport its packets go over.
- Events:
statechange (
webrtc.Event) โstatechanged.
Events
statechange:Event
Handlers are registered with
on().- property transport: RTCDtlsTransport
The DTLS transport the SCTP packets go over.
See MDN: RTCSctpTransport/transport.
- Type:
- property state: RTCSctpTransportState
Whether the SCTP association is connecting, connected or closed.
- property max_message_size: float | None
The largest message in bytes
webrtc.RTCDataChannel.send()accepts.Itโs
math.infwhen thereโs no limit andNonewhile 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
Noneuntil the transport is connected. See MDN: RTCSctpTransport/maxChannels.- Type:
int, optional