Update 'app.js'

This commit is contained in:
Adriana 2022-09-15 11:45:08 +00:00
parent 523945271e
commit 2de94721cc

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(httpServer, {
allowEIO3: true
});
// socket.io namespace (could represent a room?)
const peers = io.of('/mediasoup')