currently I have a small web app im making for a class, and the client and server are both running off their own ports, I know for a socket using socket.io, how to implement them for a one port webapp, but since im using 2 ports, im not entirely sure how to go about implementing them, i know for a one port system you would only have to set origin or have something similar to this, but if theres 2 ports it will be answering and sending between, how do I go about setting it up?
const io = require("socket.io") (8900, {
cors: {
origin: "http://localhost:5000",
}
})