- socket.on('relaySessionDescription', (data) => {
- const sockets = server.of(data.url).sockets.keys();
- sockets.forEach((peerId) => {
- const peer = server.sockets.sockets.get(peerId)
+ socket.on('relaySessionDescription', async (data) => {
+ const sockets = await server.in(data.url).fetchSockets()
+ console.log(sockets);
+ sockets.forEach((peer) => {