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