Allow io3 on server creation #4

Merged
sergiu merged 2 commits from Allow-io3 into master 2022-09-15 14:54:41 +00:00

6
app.js
View File

@ -56,7 +56,11 @@ httpsServer.listen(process.env.PORT, () => {
console.log('Listening on port:', process.env.PORT)
})
const io = new Server(httpsServer)
const io = new Server(httpsServer, {
allowEIO3: true
});
// socket.io namespace (could represent a room?)
const peers = io.of('/mediasoup')
const createWorker = async () => {