diff --git a/packages/web-util/src/live-reload.ts b/packages/web-util/src/live-reload.ts index b65d472c1..8e5e7da71 100644 --- a/packages/web-util/src/live-reload.ts +++ b/packages/web-util/src/live-reload.ts @@ -2,7 +2,8 @@ function setupLiveReload(): void { const protocol = window.location.protocol === "http:" ? "ws:" : "wss:"; - const ws = new WebSocket(`${protocol}//localhost:8080/ws`); + const port = window.location.protocol === "http:" ? "8080" : "8081"; + const ws = new WebSocket(`${protocol}//localhost:${port}/ws`); ws.addEventListener("message", (message) => { try {