mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 13:51:02 +00:00
Cleanup
This commit is contained in:
@@ -119,8 +119,6 @@ export default class Node {
|
||||
function handler(data: WebSocket.Data) {
|
||||
const message = parseMessage(data);
|
||||
|
||||
console.log(message);
|
||||
|
||||
if (!message || !message.msg) {
|
||||
return;
|
||||
}
|
||||
@@ -200,8 +198,6 @@ export default class Node {
|
||||
}
|
||||
|
||||
private onMessage(message: Message) {
|
||||
console.log(message);
|
||||
|
||||
this.lastMessage = timestamp();
|
||||
|
||||
const update = getBestBlock(message);
|
||||
|
||||
@@ -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<WebSocket> {
|
||||
let socket = await Connection.trySocket();
|
||||
|
||||
Reference in New Issue
Block a user