Hotreloading with Websocket #26911
-
Hello, I am trying to get a hotreloading feature working which is using websocket on port 3000. More details here: vitejs/vite#797 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey! Thanks for reporting this. Out of curiosity: are you able to specify port 443 to the Vite CLI when starting it up? I’m just curious if that would provide a workaround in the meantime, while we look into how to best support this specific tool 👍 |
Beta Was this translation helpful? Give feedback.
-
Update: This issue is because the dev server is “forwarded” over port 443, but the Vite HMR client is being set to 3000. I just sent a PR to Vite to fix this, and in the meantime, you should be able to workaround it by running |
Beta Was this translation helpful? Give feedback.
-
Hey Jonathan, That was fast! Thx a lot for looking into that issue and providing the fix. Cheers Chris |
Beta Was this translation helpful? Give feedback.
Update: This issue is because the dev server is “forwarded” over port 443, but the Vite HMR client is being set to 3000. I just sent a PR to Vite to fix this, and in the meantime, you should be able to workaround it by running
sudo vite --port 443
(sudo
is required since 443 is a “protected” port). Let me know if that works for you!