Allow io3 on server creation

This commit is contained in:
Adriana 2022-09-15 14:49:10 +03:00
parent 523945271e
commit 575dbd69b0
1 changed files with 3 additions and 1 deletions

4
app.js
View File

@ -42,7 +42,9 @@ 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')