webrtc use remote logger.

This commit is contained in:
Miroslav Šedivý 2021-09-09 23:48:26 +02:00
parent 3e05542205
commit 6140c2a578

View File

@ -3,6 +3,7 @@ import EventEmitter from 'eventemitter3'
import * as EVENT from '../types/events'
import { NekoWebSocket } from './websocket'
import { NekoLogger } from './logger'
import { NekoWebRTC } from './webrtc'
import { Connection, WebRTCStats } from '../types/state'
@ -24,7 +25,7 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
private _open = false
public websocket = new NekoWebSocket()
public webrtc = new NekoWebRTC()
public webrtc = new NekoWebRTC(new NekoLogger(this.websocket, 'webrtc'))
private _reconnector: {
websocket: Reconnector