mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
webrtc use remote logger.
This commit is contained in:
parent
3e05542205
commit
6140c2a578
@ -3,6 +3,7 @@ import EventEmitter from 'eventemitter3'
|
|||||||
import * as EVENT from '../types/events'
|
import * as EVENT from '../types/events'
|
||||||
|
|
||||||
import { NekoWebSocket } from './websocket'
|
import { NekoWebSocket } from './websocket'
|
||||||
|
import { NekoLogger } from './logger'
|
||||||
import { NekoWebRTC } from './webrtc'
|
import { NekoWebRTC } from './webrtc'
|
||||||
import { Connection, WebRTCStats } from '../types/state'
|
import { Connection, WebRTCStats } from '../types/state'
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
|
|||||||
private _open = false
|
private _open = false
|
||||||
|
|
||||||
public websocket = new NekoWebSocket()
|
public websocket = new NekoWebSocket()
|
||||||
public webrtc = new NekoWebRTC()
|
public webrtc = new NekoWebRTC(new NekoLogger(this.websocket, 'webrtc'))
|
||||||
|
|
||||||
private _reconnector: {
|
private _reconnector: {
|
||||||
websocket: Reconnector
|
websocket: Reconnector
|
||||||
|
Loading…
Reference in New Issue
Block a user