I logged the following:
console.log(io.nsps['/'].adapter.rooms[socket.room]);
and it returned the following:
Room { sockets: { '/#O6L2als5FU-VfHSoAAAA': true }, length: 1 }
How might I edit console.log so that it returns the length value? I tried .length, .sockets.length, I also added [1] to the end. These were all unsuccessful.