Allow io3 on server creation #4

Merged
sergiu merged 2 commits from Allow-io3 into master 2022-09-15 14:54:41 +00:00
Showing only changes of commit 575dbd69b0 - Show all commits

4
app.js
View File

@ -42,7 +42,9 @@ 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?) // socket.io namespace (could represent a room?)
const peers = io.of('/mediasoup') const peers = io.of('/mediasoup')