Skip to main content

Class: RTCSctpTransport

Constructors#

constructor#

new RTCSctpTransport(dtlsTransport, port?)

Parameters#

NameTypeDefault value
dtlsTransportRTCDtlsTransportundefined
portnumber5000

Defined in#

packages/webrtc/src/transport/sctp.ts:35

Properties#

bundled#

bundled: boolean = false

Defined in#

packages/webrtc/src/transport/sctp.ts:31


dataChannelId#

Private Optional dataChannelId: number

Defined in#

packages/webrtc/src/transport/sctp.ts:35


dataChannelQueue#

Private dataChannelQueue: [RTCDataChannel, number, Buffer][] = []

Defined in#

packages/webrtc/src/transport/sctp.ts:34


dataChannels#

dataChannels: Object = {}

Index signature#

▪ [key: number]: RTCDataChannel

Defined in#

packages/webrtc/src/transport/sctp.ts:32


dtlsTransport#

dtlsTransport: RTCDtlsTransport


mid#

Optional mid: string

Defined in#

packages/webrtc/src/transport/sctp.ts:30


onDataChannel#

Readonly onDataChannel: default<[RTCDataChannel]>

Defined in#

packages/webrtc/src/transport/sctp.ts:27


port#

port: number = 5000


sctp#

Readonly sctp: SCTP

Defined in#

packages/webrtc/src/transport/sctp.ts:29


uuid#

Readonly uuid: string

Defined in#

packages/webrtc/src/transport/sctp.ts:28

Accessors#

isServer#

Private get isServer(): boolean

Returns#

boolean

Defined in#

packages/webrtc/src/transport/sctp.ts:74

Methods#

channelByLabel#

channelByLabel(label): undefined | RTCDataChannel

Parameters#

NameType
labelstring

Returns#

undefined | RTCDataChannel

Defined in#

packages/webrtc/src/transport/sctp.ts:78


dataChannelAddNegotiated#

dataChannelAddNegotiated(channel): void

Parameters#

NameType
channelRTCDataChannel

Returns#

void

Defined in#

packages/webrtc/src/transport/sctp.ts:182


dataChannelClose#

dataChannelClose(channel): void

Parameters#

NameType
channelRTCDataChannel

Returns#

void

Defined in#

packages/webrtc/src/transport/sctp.ts:320


dataChannelFlush#

Private dataChannelFlush(): Promise<void>

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/sctp.ts:239


dataChannelOpen#

dataChannelOpen(channel): void

Parameters#

NameType
channelRTCDataChannel

Returns#

void

Defined in#

packages/webrtc/src/transport/sctp.ts:197


datachannelReceive#

Private datachannelReceive(streamId, ppId, data): Promise<void>

Parameters#

NameType
streamIdnumber
ppIdnumber
dataBuffer

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/sctp.ts:82


datachannelSend#

datachannelSend(channel, data): void

Parameters#

NameType
channelRTCDataChannel
datastring | Buffer

Returns#

void

Defined in#

packages/webrtc/src/transport/sctp.ts:284


start#

start(remotePort): Promise<void>

Parameters#

NameType
remotePortnumber

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/sctp.ts:304


stop#

stop(): Promise<void>

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/sctp.ts:315


getCapabilities#

Static getCapabilities(): RTCSctpCapabilities

Returns#

RTCSctpCapabilities

Defined in#

packages/webrtc/src/transport/sctp.ts:300