Merge pull request 'Allow io3 on server creation' (#4) from Allow-io3 into master

Reviewed-on: #4
This commit is contained in:
Sergiu Toma 2022-09-15 14:54:41 +00:00
commit f5406f163f

6
app.js
View File

@ -56,7 +56,11 @@ httpsServer.listen(process.env.PORT, () => {
console.log('Listening on port:', 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 peers = io.of('/mediasoup')
const createWorker = async () => { const createWorker = async () => {