Skip to content

Commit

Permalink
rtcdatachannel binarytype fix (#37859)
Browse files Browse the repository at this point in the history
* rtcdatachannel binarytype fix

* review comments
  • Loading branch information
gagan-bhullar-tech authored Jan 29, 2025
1 parent 10bbf0b commit ea27e60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcdatachannel/binarytype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on the {{domxref("RTCDataChannel")}}. Values allowed by the
{{domxref("WebSocket.binaryType")}} property are also permitted here:
`blob` if {{domxref("Blob")}} objects are being used or
`arraybuffer` if {{jsxref("ArrayBuffer")}} objects are being used. The
default is `blob`.
default is `arraybuffer`.

When a binary message is received on the data channel, the resulting
{{DOMxRef("RTCDataChannel.message_event", "message")}} event's {{domxref("MessageEvent.data")}} property is an object of
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcdatachannel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _Also inherits properties from {{DOMxRef("EventTarget")}}._
Values are the same as allowed on the {{DOMxRef("WebSocket.binaryType")}} property:
`blob` if {{DOMxRef("Blob")}} objects are being used,
or `arraybuffer` if {{jsxref("ArrayBuffer")}} objects are being used.
The default is `blob`.
The default is `arraybuffer`.
- {{DOMxRef("RTCDataChannel.bufferedAmount", "bufferedAmount")}} {{ReadOnlyInline}}
- : Returns the number of bytes of data
currently queued to be sent over the data channel.
Expand Down

0 comments on commit ea27e60

Please sign in to comment.