Help getting WebSocket connexion working
krz0001
HOBBYOP

a year ago

Hello there, I currently have a node app under a single deployment that has both a web server on port 80 and a websocket server on port 443. I've been trying to get the webview to connect to said WebSocket server but whatever I do, it seems like the 443 port stays closed to the public.
I tried switching the websocket address to a TCP proxy but that hasn't worked either :(

Solved

4 Replies

krz0001
HOBBYOP

a year ago

360c789b-0a35-4f7c-a6e2-5820d828bd10


krz0001
HOBBYOP

a year ago

Update: managed to get it to run - for anyone else having this type of setup with two separate ports, you want to make the app listen to a single port and have the HTTP connexion upgraded to a websocket.
(also make sure to have a way for your webapp to force the websocket port connexion to 80 - since the PORT env variable Railway gives you can be different than 80, but your websocket will end up publicly listening to the 80 port if you enable public domains.)


a year ago

glad you where able to get it to work!


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...