From df933c8e605dcda6638d4e3b98f2aff9eb6b13fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 17 Mar 2021 16:47:45 +0100 Subject: [PATCH] firefox bug: dataChannel binaryType to arraybuffer. --- src/component/internal/webrtc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/internal/webrtc.ts b/src/component/internal/webrtc.ts index c78d4f87..18cd72ce 100644 --- a/src/component/internal/webrtc.ts +++ b/src/component/internal/webrtc.ts @@ -241,6 +241,7 @@ export class NekoWebRTC extends EventEmitter { this._log.debug(`received data channel from peer: ${event.channel.label}`, event) this._channel = event.channel + this._channel.binaryType = 'arraybuffer' this._channel.onerror = this.onDisconnected.bind(this, new Error('peer data channel error')) this._channel.onmessage = this.onData.bind(this) this._channel.onopen = this.onConnected.bind(this)