const sockets = Array.from(io.sockets.sockets).map(socket => socket[0]); console.log(sockets);
const sockets = (await io.fetchSockets()).map(socket => socket.id); console.log(sockets);