-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: add option for non-http(s) ws #452
Comments
Tbh the description is far from clear and even if I vaguely understand what you mean, I need to see an actual setup to really figure out what to do. |
I tried to replicate it on nodejs but it shows the issue only partially: [ REPO ] (the part with infinity loop is not there)
visit When you visit This can be easily fixed by adding ability to run ws on custom port. In my case insteadof NodeJS I'm using RoR in a huge project. It is not easily editable like NodeJS is. |
|
Allows assets to be served under a different port close vitejs#452, close vitejs#460
Just on the off-chance anybody comes across this thread as I did. This is my first time using vite (vith Vue). I was trying to get my project set up with Docker and was getting this error resulting in what looked like HMR being triggered. It seems to happen when mapping two different ports in I was mapping like this (port 8080 has been set in
changing to |
This issue has been locked since it has been closed for more than 14 days. If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion. |
If user won't visit the vite server then the HMR is not loaded. Atm people could use hostname:24678 for HMR but that was changed at 7fe66cc . Right now people will get error message:
hmr:44 WebSocket connection to 'ws://hostname:3000/' failed: Error during WebSocket handshake: Unexpected response code: 200
. Cuz vite server has not sendupgrade
event due not visiting the server location exposed by vite server. They are also stuck in infinite loop where each refresh calls[vite] server connection lost. polling for restart...
again.Can we have option to use WS not based on host location but on specific port like it was before 7fe66cc?
I'm using vite from RoR to pack typescripts and support HMR. So vite is behaving like side server for bundling. That is why vite is running on different port than main application.
The text was updated successfully, but these errors were encountered: