Optional
buffered30_000
Optional
closeWhen closing a stream we first send a FIN flag to the remote and wait for a FIN_ACK reply before closing the underlying RTCDataChannel - this controls how long we wait for the acknowledgement in ms
5_000
Optional
drainWhen closing a stream, we wait for bufferedAmount
to become 0 before
closing the underlying RTCDataChannel - this controls how long we wait
in ms
30_000
Optional
maxIf the channel's bufferedAmount
grows over this amount in bytes, wait
for it to drain before sending more data
16_777_216
Optional
maxThe maximum message size to be sent over the channel in bytes
16_384
Optional
openWhen sending the first data message, if the channel is not in the "open" state, wait this long for the "open" event to fire.
5_000
When
bufferedAmount
is abovemaxBufferedAmount
, we pause sending until thebufferedAmountLow
event fires - this controls how long we wait for that event in ms