diff --git a/src/utils/redirectMap.js b/src/utils/redirectMap.js index 738311d..fa5a0fb 100644 --- a/src/utils/redirectMap.js +++ b/src/utils/redirectMap.js @@ -15,7 +15,7 @@ export function useRedirectMap() { useEffect(() => { (async () => { if (hotReload) { - const socket = io(`ws:${window.location}`, { + const socket = io(`ws://${window.location.host}`, { reconnectionAttempts: 1, // Limit reconnection attempts });