Class: RTCDataChannel
#
Hierarchy↳ RTCDataChannel
#
Constructors#
constructor• new RTCDataChannel(transport
, parameters
, sendOpen?
)
#
ParametersName | Type | Default value |
---|---|---|
transport | RTCSctpTransport | undefined |
parameters | RTCDataChannelParameters | undefined |
sendOpen | boolean | true |
#
Overrides#
Defined inpackages/webrtc/src/dataChannel.ts:27
#
Properties#
_bufferedAmountLowThreshold• Private
_bufferedAmountLowThreshold: number
= 0
#
Defined inpackages/webrtc/src/dataChannel.ts:27
#
bufferedAmount• bufferedAmount: number
= 0
#
Defined inpackages/webrtc/src/dataChannel.ts:26
#
bufferedAmountLow• Readonly
bufferedAmountLow: default
<any[]>
#
Defined inpackages/webrtc/src/dataChannel.ts:15
#
error• Readonly
error: default
<[Error
]>
#
Defined inpackages/webrtc/src/dataChannel.ts:14
#
id• id: number
#
Defined inpackages/webrtc/src/dataChannel.ts:23
#
isCreatedByRemote• isCreatedByRemote: boolean
= false
#
Defined inpackages/webrtc/src/dataChannel.ts:22
#
message• Readonly
message: default
<[string
| Buffer
]>
#
Defined inpackages/webrtc/src/dataChannel.ts:12
#
onclose• Optional
onclose: Callback
#
Defined inpackages/webrtc/src/dataChannel.ts:17
#
onclosing• Optional
onclosing: Callback
#
Defined inpackages/webrtc/src/dataChannel.ts:18
#
onerror• Optional
onerror: CallbackWithValue
<RTCErrorEvent>
#
Defined inpackages/webrtc/src/dataChannel.ts:21
#
onmessage• Optional
onmessage: CallbackWithValue
<MessageEvent>
#
Defined inpackages/webrtc/src/dataChannel.ts:19
#
onopen• Optional
onopen: Callback
#
Defined inpackages/webrtc/src/dataChannel.ts:16
#
readyState• readyState: DCState = "connecting"
#
Defined inpackages/webrtc/src/dataChannel.ts:24
#
sendOpen• Readonly
sendOpen: boolean
= true
#
stateChanged• Readonly
stateChanged: default
<[DCState]>
#
Defined inpackages/webrtc/src/dataChannel.ts:11
#
captureRejectionSymbol▪ Static
Readonly
captureRejectionSymbol: typeof captureRejectionSymbol
#
Inherited fromEventTarget.captureRejectionSymbol
#
Defined innode_modules/@types/node/events.d.ts:43
#
captureRejections▪ Static
captureRejections: boolean
Sets or gets the default captureRejection value for all emitters.
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:49
#
defaultMaxListeners▪ Static
defaultMaxListeners: number
#
Inherited fromEventTarget.defaultMaxListeners
#
Defined innode_modules/@types/node/events.d.ts:50
#
errorMonitor▪ Static
Readonly
errorMonitor: typeof errorMonitor
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:42
#
Accessors#
bufferedAmountLowThreshold• get
bufferedAmountLowThreshold(): number
#
Returnsnumber
#
Defined inpackages/webrtc/src/dataChannel.ts:74
• set
bufferedAmountLowThreshold(value
): void
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:78
#
label• get
label(): string
#
Returnsstring
#
Defined inpackages/webrtc/src/dataChannel.ts:62
#
maxPacketLifeTime• get
maxPacketLifeTime(): undefined
| number
#
Returnsundefined
| number
#
Defined inpackages/webrtc/src/dataChannel.ts:58
#
maxRetransmits• get
maxRetransmits(): undefined
| number
#
Returnsundefined
| number
#
Defined inpackages/webrtc/src/dataChannel.ts:54
#
negotiated• get
negotiated(): boolean
#
Returnsboolean
#
Defined inpackages/webrtc/src/dataChannel.ts:70
#
ordered• get
ordered(): boolean
#
Returnsboolean
#
Defined inpackages/webrtc/src/dataChannel.ts:50
#
protocol• get
protocol(): string
#
Returnsstring
#
Defined inpackages/webrtc/src/dataChannel.ts:66
#
Methods#
addBufferedAmount▸ addBufferedAmount(amount
): void
#
ParametersName | Type |
---|---|
amount | number |
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:112
#
addEventListener▸ addEventListener(type
, listener
): void
#
ParametersName | Type |
---|---|
type | string |
listener | (...args : any []) => void |
#
Returnsvoid
#
Inherited from#
Defined inpackages/webrtc/src/helper.ts:37
#
addListener▸ addListener(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:62
#
close▸ close(): void
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:127
#
emit▸ emit(event
, ...args
): boolean
#
ParametersName | Type |
---|---|
event | string | symbol |
...args | any [] |
#
Returnsboolean
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:72
#
eventNames▸ eventNames(): (string
| symbol
)[]
#
Returns(string
| symbol
)[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:77
#
getMaxListeners▸ getMaxListeners(): number
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:69
#
listenerCount▸ listenerCount(event
): number
#
ParametersName | Type |
---|---|
event | string | symbol |
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:73
#
listeners▸ listeners(event
): Function
[]
#
ParametersName | Type |
---|---|
event | string | symbol |
#
ReturnsFunction
[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:70
#
off▸ off(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:66
#
on▸ on(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:63
#
once▸ once(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:64
#
prependListener▸ prependListener(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:75
#
prependOnceListener▸ prependOnceListener(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited fromEventTarget.prependOnceListener
#
Defined innode_modules/@types/node/events.d.ts:76
#
rawListeners▸ rawListeners(event
): Function
[]
#
ParametersName | Type |
---|---|
event | string | symbol |
#
ReturnsFunction
[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:71
#
removeAllListeners▸ removeAllListeners(event?
): RTCDataChannel
#
ParametersName | Type |
---|---|
event? | string | symbol |
#
Returns#
Inherited fromEventTarget.removeAllListeners
#
Defined innode_modules/@types/node/events.d.ts:67
#
removeEventListener▸ removeEventListener(type
, listener
): void
#
ParametersName | Type |
---|---|
type | string |
listener | (...args : any []) => void |
#
Returnsvoid
#
Inherited fromEventTarget.removeEventListener
#
Defined inpackages/webrtc/src/helper.ts:41
#
removeListener▸ removeListener(event
, listener
): RTCDataChannel
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:65
#
send▸ send(data
): void
#
ParametersName | Type |
---|---|
data | string | Buffer |
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:123
#
setId▸ setId(id
): void
#
ParametersName | Type |
---|---|
id | number |
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:86
#
setMaxListeners▸ setMaxListeners(n
): RTCDataChannel
#
ParametersName | Type |
---|---|
n | number |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:68
#
setReadyState▸ setReadyState(state
): void
#
ParametersName | Type |
---|---|
state | DCState |
#
Returnsvoid
#
Defined inpackages/webrtc/src/dataChannel.ts:90
#
listenerCount▸ Static
listenerCount(emitter
, event
): number
deprecated
since v4.0.0
#
ParametersName | Type |
---|---|
emitter | EventEmitter |
event | string | symbol |
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:31
#
on▸ Static
on(emitter
, event
): AsyncIterableIterator
<any>
#
ParametersName | Type |
---|---|
emitter | EventEmitter |
event | string |
#
ReturnsAsyncIterableIterator
<any>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:28
#
once▸ Static
once(emitter
, event
): Promise
<any[]>
#
ParametersName | Type |
---|---|
emitter | NodeEventTarget |
event | string | symbol |
#
ReturnsPromise
<any[]>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:26
▸ Static
once(emitter
, event
): Promise
<any[]>
#
ParametersName | Type |
---|---|
emitter | DOMEventTarget |
event | string |
#
ReturnsPromise
<any[]>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:27