SolidStart Websocket Proxy
Hello,
I've tried to create a proxy to standalone websocket server in SolidStart, for purpose of this showcase I created a simple demo showing the issue I ran into.
index.js aka the websocket server
then I have this very simple Websocket connection on the client
app.tsx
and here is the proxy
app.config.ts
Now, the problem is that when trying to establish the ws connection it gets through to the server but gets closed immediately, so the console logs on the server would look like this
on the client it will take some time before eventually getting an error that the connection could not have been established.
I have also tried to recreate the same situation with SvelteKit but there it worked without any problem with the same setup (just edited vite.config directly).
I appreciate your help, thanks.
I've tried to create a proxy to standalone websocket server in SolidStart, for purpose of this showcase I created a simple demo showing the issue I ran into.
index.js aka the websocket server
then I have this very simple Websocket connection on the client
app.tsx
and here is the proxy
app.config.ts
Now, the problem is that when trying to establish the ws connection it gets through to the server but gets closed immediately, so the console logs on the server would look like this
on the client it will take some time before eventually getting an error that the connection could not have been established.
I have also tried to recreate the same situation with SvelteKit but there it worked without any problem with the same setup (just edited vite.config directly).
I appreciate your help, thanks.
