Update main.js (#441)
* Update main.js * Changed websocket port to 1648
This commit is contained in:
committed by
GitHub
parent
6a2412f5dd
commit
a3d9149d2a
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user