I've a Nest.js app that is working fine on local and Docker, but when I deploy it to Railway, it gives me an error.
I've tried every suggestion from AI to resolve it, but it's not working
I've tried using the internal address, and right now I've set public URL of the backend to connect to it, but still I'm seeing this error
WebSocket connection to 'wss://{backend-url}.up.railway.app/socket.io/?EIO=4&transport=websocket'
the error redirects me to this part:
class X extends K { createSocket(t, e, s) { return $ ? new W(t,e,s) : e ? new W(t,e) : new W(t) } doWrite(t, e) { this.ws.send(e) } }
Can you help me solve it?