fix socket.io backward compatibility with socket v2 clients

This commit is contained in:
Karsten Hassel
2021-01-27 20:52:50 +01:00
parent c0ddc020d5
commit 5116a2fc82
2 changed files with 6 additions and 1 deletions

View File

@@ -28,7 +28,11 @@ function Server(config, callback) {
server = require("http").Server(app);
}
const io = require("socket.io")(server, {
cors: {}
cors: {
origin: /.*$/,
credentials: true
},
allowEIO3: true
});
Log.log(`Starting server on port ${port} ... `);