LINXD-2222: Update
This commit is contained in:
parent
29737fe5d8
commit
07be8af9ae
7
app.js
7
app.js
@ -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, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user