We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844e1dd commit bc5aaecCopy full SHA for bc5aaec
src/polyfill/RTCDataChannel.ts
@@ -180,6 +180,8 @@ export default class RTCDataChannel extends EventTarget implements globalThis.RT
180
this.#dataChannel.sendMessageBinary(new Uint8Array(ab));
181
}
182
});
183
+ } else if (data instanceof Uint8Array) {
184
+ this.#dataChannel.sendMessageBinary(data);
185
} else {
186
if (process?.versions?.bun) {
187
this.#dataChannel.sendMessageBinary(Buffer.from(data));
0 commit comments