1const io = require("socket.io")(httpServer,
2 {
3 cors: {
4 origin: "*",
5 methods: ["GET", "POST"]
6 }});
1const io = require("socket.io")(httpServer, { cors: { origin: "http://localhost:8080", methods: ["GET", "POST"] }});httpServer.listen(3000);