WIP
This commit is contained in:
@@ -42,7 +42,7 @@ export class PeerManager {
|
||||
eventListeners: Map<PeerEventTypes, Function[]> = new Map();
|
||||
reconnectPeriod: number = 10;
|
||||
messageSuperlog = false;
|
||||
watchdogInterval: number = 0;
|
||||
watchdogInterval: ReturnType<typeof setTimeout> |null = null;
|
||||
reconnectTimer: number | null = null;
|
||||
peerStateSuperlog: boolean = false;
|
||||
|
||||
@@ -586,7 +586,7 @@ class PeerConnection {
|
||||
this.peerManager.disconnectFromPeer(this.remotePeerID);
|
||||
}
|
||||
|
||||
this.dataChannel.onerror = (e: RTCErrorEvent) => {
|
||||
this.dataChannel.onerror = (e: RTCErrorEvent) => {
|
||||
this.dataChannelSuperlog && console.log.apply(null, log(`datachannel from peer ${this.remotePeerID} error:`, e.error));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user