Update block immediately after adding a node to the chain

This commit is contained in:
maciejhirsz
2018-07-21 08:30:06 +02:00
parent ef95c3e507
commit 42e7010697
3 changed files with 13 additions and 11 deletions
+4 -4
View File
@@ -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();