diff --git a/packages/backend/src/Node.ts b/packages/backend/src/Node.ts index e43089f..8c7ebae 100644 --- a/packages/backend/src/Node.ts +++ b/packages/backend/src/Node.ts @@ -237,11 +237,11 @@ export default class Node { } private updateLatency(now: Types.Timestamp) { - if (this.pingStart) { - console.error(`${this.name} timed out on ping message.`); - this.disconnect(); - return; - } + // if (this.pingStart) { + // console.error(`${this.name} timed out on ping message.`); + // this.disconnect(); + // return; + // } this.pingStart = now; this.socket.ping(noop); diff --git a/packages/frontend/src/Connection.ts b/packages/frontend/src/Connection.ts index 61129c2..42d5efa 100644 --- a/packages/frontend/src/Connection.ts +++ b/packages/frontend/src/Connection.ts @@ -11,11 +11,11 @@ export class Connection { return new Connection(await Connection.socket(), update); } - // private static readonly address = window.location.protocol === 'https:' - // ? `wss://${window.location.hostname}/feed/` - // : `ws://${window.location.hostname}:8080`; + private static readonly address = window.location.protocol === 'https:' + ? `wss://${window.location.hostname}/feed/` + : `ws://${window.location.hostname}:8080`; - private static readonly address = 'wss://telemetry.polkadot.io/feed/'; + // private static readonly address = 'wss://telemetry.polkadot.io/feed/'; private static async socket(): Promise { let socket = await Connection.trySocket();