Merge pull request 'Allow io3 on server creation' (#4) from Allow-io3 into master
Reviewed-on: #4
This commit is contained in:
commit
f5406f163f
6
app.js
6
app.js
@ -56,7 +56,11 @@ 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')
|
||||
|
||||
const createWorker = async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user