Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
8 replies
test_1

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 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
Was this page helpful?