Skip to content

Commit

Permalink
socketUrlPath
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAdoniev committed Nov 5, 2023
1 parent 3baea46 commit 72f91de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 5 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ import io from "socket.io-client";
import { useEffect, useState } from "react";
import "./components/ChainModal/Chain.css";

import { socketUrl, url } from "./constants";
import { socketUrlPath, url, socketUrl } from "./constants";
import { handleGoogleAnalyticsPageView } from "./GA4";

const socket = io(socketUrl, {
path: "/socket.io",
path: socketUrlPath || "/socket.io",
});
/*const scraperSocket = io(scraperSocketUrl, {
path: "/socket.io",
});
const destScraperSocket = io(destScraperSocketUrl, {
path: "/socket.io",
});*/
setTimeout(() => {
console.log(socket.connected);
}, 6000);
interface AppData {
totalTx: number;
totalWallets: number;
Expand Down
5 changes: 3 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ export const chains = [
},
];

export const url = "https://dev-explorer-api.herokuapp.com/";
export const socketUrl = "wss://dev-explorer-api.herokuapp.com/";
export const url = "https://explorer-app.xp.network/";
export const socketUrl = "https://explorer-app.xp.network";
export const socketUrlPath = "/ws";
//export const scraperSocketUrl = "wss://explorer-scraper.herokuapp.com/";
//export const destScraperSocketUrl = "wss://dest-scraper.herokuapp.com/";

Expand Down

0 comments on commit 72f91de

Please sign in to comment.