From 575dbd69b0f3ce952eb8db87deceac3918acc5b1 Mon Sep 17 00:00:00 2001 From: adriana Date: Thu, 15 Sep 2022 14:49:10 +0300 Subject: [PATCH] Allow io3 on server creation --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 860dae3..74be469 100644 --- a/app.js +++ b/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') -- 2.37.1