Class: RTCSctpTransport
#
Constructors#
constructor• new RTCSctpTransport(dtlsTransport
, port?
)
#
ParametersName | Type | Default value |
---|---|---|
dtlsTransport | RTCDtlsTransport | undefined |
port | number | 5000 |
#
Defined inpackages/webrtc/src/transport/sctp.ts:35
#
Properties#
bundled• bundled: boolean
= false
#
Defined inpackages/webrtc/src/transport/sctp.ts:31
#
dataChannelId• Private
Optional
dataChannelId: number
#
Defined inpackages/webrtc/src/transport/sctp.ts:35
#
dataChannelQueue• Private
dataChannelQueue: [RTCDataChannel, number
, Buffer
][] = []
#
Defined inpackages/webrtc/src/transport/sctp.ts:34
#
dataChannels• dataChannels: Object
= {}
#
Index signature▪ [key: number
]: RTCDataChannel
#
Defined inpackages/webrtc/src/transport/sctp.ts:32
#
dtlsTransport• dtlsTransport: RTCDtlsTransport
#
mid• Optional
mid: string
#
Defined inpackages/webrtc/src/transport/sctp.ts:30
#
onDataChannel• Readonly
onDataChannel: default
<[RTCDataChannel]>
#
Defined inpackages/webrtc/src/transport/sctp.ts:27
#
port• port: number
= 5000
#
sctp• Readonly
sctp: SCTP
#
Defined inpackages/webrtc/src/transport/sctp.ts:29
#
uuid• Readonly
uuid: string
#
Defined inpackages/webrtc/src/transport/sctp.ts:28
#
Accessors#
isServer• Private
get
isServer(): boolean
#
Returnsboolean
#
Defined inpackages/webrtc/src/transport/sctp.ts:74
#
Methods#
channelByLabel▸ channelByLabel(label
): undefined
| RTCDataChannel
#
ParametersName | Type |
---|---|
label | string |
#
Returnsundefined
| RTCDataChannel
#
Defined inpackages/webrtc/src/transport/sctp.ts:78
#
dataChannelAddNegotiated▸ dataChannelAddNegotiated(channel
): void
#
ParametersName | Type |
---|---|
channel | RTCDataChannel |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/sctp.ts:182
#
dataChannelClose▸ dataChannelClose(channel
): void
#
ParametersName | Type |
---|---|
channel | RTCDataChannel |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/sctp.ts:320
#
dataChannelFlush▸ Private
dataChannelFlush(): Promise
<void>
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/sctp.ts:239
#
dataChannelOpen▸ dataChannelOpen(channel
): void
#
ParametersName | Type |
---|---|
channel | RTCDataChannel |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/sctp.ts:197
#
datachannelReceive▸ Private
datachannelReceive(streamId
, ppId
, data
): Promise
<void>
#
ParametersName | Type |
---|---|
streamId | number |
ppId | number |
data | Buffer |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/sctp.ts:82
#
datachannelSend▸ datachannelSend(channel
, data
): void
#
ParametersName | Type |
---|---|
channel | RTCDataChannel |
data | string | Buffer |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/sctp.ts:284
#
start▸ start(remotePort
): Promise
<void>
#
ParametersName | Type |
---|---|
remotePort | number |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/sctp.ts:304
#
stop▸ stop(): Promise
<void>
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/sctp.ts:315
#
getCapabilities▸ Static
getCapabilities(): RTCSctpCapabilities