Update main.js (#441)

* Update main.js

* Changed websocket port to 1648
This commit is contained in:
Jędrzej Stuczyński
2020-11-12 11:07:15 +00:00
committed by GitHub
parent 6a2412f5dd
commit a3d9149d2a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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";
return "ws://localhost:1648";
} else if ($(location).attr("href").startsWith("http://qa-explorer")) {
return "ws://qa-explorer.nymtech.net:1648";
} else {
return "wss://metrics.nymtech.net";
return "ws://testnet-explorer.nymtech.net:1648";
}
}
+1 -1
View File
@@ -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;