From a3a4578ea92c2270c036138945b720edd7dd870a Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Sun, 15 Oct 2023 20:17:00 +0300 Subject: [PATCH] Add README note about specifying the "ws" parameter when developing --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 1b14211..22cd8bd 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,10 @@ Run the development server: ``` npm run dev -- --open ``` + +The web interface tries to open a WebSocket to the same host it's being served from, which is wrong when running the +development server. Override the WebSocket URL using the `ws` query parameter, like this: + +``` +http://localhost:5173/?ws=ws://localhost:8080 +```