From 1c9156faba33f69e54487c7bba2663f56d31689c Mon Sep 17 00:00:00 2001 From: jstuczyn Date: Thu, 12 Nov 2020 10:57:11 +0000 Subject: [PATCH 1/2] Update main.js --- explorer/public/assets/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer/public/assets/js/main.js b/explorer/public/assets/js/main.js index 12c188d4d92..c9a24e94c72 100644 --- a/explorer/public/assets/js/main.js +++ b/explorer/public/assets/js/main.js @@ -1,10 +1,10 @@ function websocketUrl() { if ($(location).attr("href").startsWith("http://localhost")) { return "ws://localhost:8080"; - } else if ($(location).attr("href").startsWith("https://qa-dashboard")) { - return "wss://qa-metrics.nymtech.net"; + } else if ($(location).attr("href").startsWith("http://qa-explorer")) { + return "ws://qa-explorer.nymtech.net:8080"; } else { - return "wss://metrics.nymtech.net"; + return "ws://testnet-explorer.nymtech.net:8080"; } } From 2044caf2e85a46bd3cf4a591f1bb7a631685a31d Mon Sep 17 00:00:00 2001 From: jstuczyn Date: Thu, 12 Nov 2020 11:05:28 +0000 Subject: [PATCH 2/2] Changed websocket port to 1648 --- explorer/public/assets/js/main.js | 6 +++--- explorer/src/main.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/explorer/public/assets/js/main.js b/explorer/public/assets/js/main.js index c9a24e94c72..6ad2a8d79e6 100644 --- a/explorer/public/assets/js/main.js +++ b/explorer/public/assets/js/main.js @@ -1,10 +1,10 @@ function websocketUrl() { if ($(location).attr("href").startsWith("http://localhost")) { - return "ws://localhost:8080"; + return "ws://localhost:1648"; } else if ($(location).attr("href").startsWith("http://qa-explorer")) { - return "ws://qa-explorer.nymtech.net:8080"; + return "ws://qa-explorer.nymtech.net:1648"; } else { - return "ws://testnet-explorer.nymtech.net:8080"; + return "ws://testnet-explorer.nymtech.net:1648"; } } diff --git a/explorer/src/main.rs b/explorer/src/main.rs index 99977224553..24df8945e0d 100644 --- a/explorer/src/main.rs +++ b/explorer/src/main.rs @@ -53,7 +53,7 @@ async fn main() { }); tokio::spawn(async move { - websockets::listen(8080, sender_clone).await; + websockets::listen(1648, sender_clone).await; }); jobs::start(validator_base_url).await;