tidy logs. Add all files to service worker
This commit is contained in:
@@ -43,6 +43,7 @@ export class PeerManager {
|
||||
messageSuperlog = false;
|
||||
watchdogInterval: number = 0;
|
||||
reconnectTimer: number | null = null;
|
||||
peerStateSuperlog: boolean = false;
|
||||
|
||||
// async watchdog() {
|
||||
// // Check that we're connected to at least N peers. If not, reconnect to the bootstrap server.
|
||||
@@ -151,7 +152,7 @@ export class PeerManager {
|
||||
}
|
||||
|
||||
if (!bootstrapPeerID) {
|
||||
// console.log.apply(null, log("Didn't get bootstrap peer, waiting 10 seconds..."));
|
||||
console.log.apply(null, log("Didn't get bootstrap peer, waiting 10 seconds..."));
|
||||
// let callSendHello2OnTimeout = () => { console.log(this, "jajajajaj");this.sendHello2() };
|
||||
// setTimeout(callSendHello2OnTimeout, 5_000);
|
||||
return;
|
||||
@@ -323,7 +324,7 @@ export class PeerManager {
|
||||
}
|
||||
|
||||
onPeerConnected(peerID: PeerID) {
|
||||
console.log.apply(null, log(`PeerManager: Successfully connected to peer ${peerID}`));
|
||||
this.peerStateSuperlog && console.log.apply(null, log(`PeerManager: Successfully connected to peer ${peerID}`));
|
||||
this.dispatchEvent(PeerEventTypes.PEER_CONNECTED, { peerID: peerID });
|
||||
}
|
||||
|
||||
@@ -470,7 +471,7 @@ class PeerConnection {
|
||||
iceServers: [
|
||||
{ urls: "stun:ddln.app" },
|
||||
{ urls: "turn:ddln.app", username: "a", credential: "b" },
|
||||
{ urls: "stun:stun.l.google.com" }, // keeping this for now as my STUN server is not return ipv6
|
||||
{ urls: "stun:stun.l.google.com" }, // keeping this for now as my STUN server is not returning ipv6
|
||||
// { urls: "stun:stun1.l.google.com" },
|
||||
// { urls: "stun:stun2.l.google.com" },
|
||||
// { urls: "stun:stun3.l.google.com" },
|
||||
|
||||
Reference in New Issue
Block a user