const httpServer = require('http').createServer(app);
const io = require("socket.io")(httpServer, {
allowEIO3: true,
cors: {
origin: "*", // from the screenshot you provided
methods: ["GET", "POST"]
}
});
发表评论