mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
firefox bug: dataChannel binaryType to arraybuffer.
This commit is contained in:
parent
662cb53982
commit
df933c8e60
@ -241,6 +241,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
|||||||
this._log.debug(`received data channel from peer: ${event.channel.label}`, event)
|
this._log.debug(`received data channel from peer: ${event.channel.label}`, event)
|
||||||
|
|
||||||
this._channel = event.channel
|
this._channel = event.channel
|
||||||
|
this._channel.binaryType = 'arraybuffer'
|
||||||
this._channel.onerror = this.onDisconnected.bind(this, new Error('peer data channel error'))
|
this._channel.onerror = this.onDisconnected.bind(this, new Error('peer data channel error'))
|
||||||
this._channel.onmessage = this.onData.bind(this)
|
this._channel.onmessage = this.onData.bind(this)
|
||||||
this._channel.onopen = this.onConnected.bind(this)
|
this._channel.onopen = this.onConnected.bind(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user