commit 1e94777aa983cf5309ba738efd6f7689db20b92c parent d9c39f53d6870bfd59eed6a75ffb0ce4c94a4582 Author: Sebastian <sebasjm@gmail.com> Date: Mon, 3 Apr 2023 12:14:25 -0300 fix https on port 8081 Diffstat:
| M | packages/web-util/src/live-reload.ts | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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 {