socket.io-redis
Advanced tools
Changelog
6.0.0 (2020-11-12)
Before:
io.of('/').adapter.allRooms((err, rooms) => {
console.log(rooms); // an array containing all rooms (accross every node)
});
After:
const rooms = await io.of('/').adapter.allRooms();
console.log(rooms); // a Set containing all rooms (across every node)
See https://github.com/socketio/socket.io-adapter/commit/130f28a43c5aca924aa2c1a318422d21ba03cdac
Those methods will be replaced by a more intuitive API in a future iteration.
See https://github.com/nodejs/Release