Skip to content

Commit a3d9149

Browse files
authored
Update main.js (#441)
* Update main.js * Changed websocket port to 1648
1 parent 6a2412f commit a3d9149

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

explorer/public/assets/js/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function websocketUrl() {
22
if ($(location).attr("href").startsWith("http://localhost")) {
3-
return "ws://localhost:8080";
4-
} else if ($(location).attr("href").startsWith("https://qa-dashboard")) {
5-
return "wss://qa-metrics.nymtech.net";
3+
return "ws://localhost:1648";
4+
} else if ($(location).attr("href").startsWith("http://qa-explorer")) {
5+
return "ws://qa-explorer.nymtech.net:1648";
66
} else {
7-
return "wss://metrics.nymtech.net";
7+
return "ws://testnet-explorer.nymtech.net:1648";
88
}
99
}
1010

explorer/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async fn main() {
5353
});
5454

5555
tokio::spawn(async move {
56-
websockets::listen(8080, sender_clone).await;
56+
websockets::listen(1648, sender_clone).await;
5757
});
5858

5959
jobs::start(validator_base_url).await;

0 commit comments

Comments
 (0)