LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-19 16:46:43 +03:00
parent 29737fe5d8
commit 07be8af9ae

7
app.js
View File

@ -19,7 +19,7 @@ import mediasoup from 'mediasoup'
import * as express from "express";
import * as https from "http";
import Server from "socket.io";
import middleware from 'socketio-wildcard'
// import middleware from 'socketio-wildcard'
const app = express.default();
let worker
@ -56,9 +56,10 @@ const options = {
}
const server = https.createServer(options, app);
const io = new Server(server, { origins: '*:*', allowEIO3: true });
const io = new Server(server, { allowEIO3: true });
// const io = new Server(server, { origins: '*:*', allowEIO3: true });
io.use(middleware);
// io.use(middleware);
// const httpsServer = https.createServer(options, app)
// httpsServer.listen(process.env.PORT, () => {