Allow io3 on server creation #4
4
app.js
4
app.js
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user