LINXD-2222-debugging-for-i-os #7

Merged
sergiu merged 36 commits from LINXD-2222-debugging-for-i-os into master 2022-09-20 23:16:17 +00:00
Showing only changes of commit 07be8af9ae - Show all commits

7
app.js
View File

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