whats the url of deployed socket.io server
i have a nodejs socket.io server
idk the url to my websocket server
in nodejs I do
and client knows that the websocket is hosted on localhost:1001
but in deployed server, the domain of the server would be something like deployedserver.com but client cant connect to deployedserver.com:1001
idk the url to my websocket server
in nodejs I do
const io = new Server(1001, { cors: { origin: ["https://deployedclient.vercel.app", "http://localhost:3000"] } })and client knows that the websocket is hosted on localhost:1001
but in deployed server, the domain of the server would be something like deployedserver.com but client cant connect to deployedserver.com:1001
