Releases: socketio/socket.io-redis-adapter
Releases · socketio/socket.io-redis-adapter
6.1.0
Features
- implement utility methods from Socket.IO v4 (468c3c8)
Performance Improvements
- remove one round-trip for the requester (6c8d770)
Links
- Diff: 6.0.1...6.1.0
6.0.1
6.0.0
See also: https://github.com/socketio/socket.io-redis#compatibility-table
Features
- add support for Socket.IO v3 (d9bcb19)
BREAKING CHANGES:
- all the requests (for inter-node communication) now return a Promise instead of accepting a callback
Before:
io.of('/').adapter.allRooms((err, rooms) => {
console.log(rooms); // an array containing all rooms (across every node)
});
After:
const rooms = await io.of('/').adapter.allRooms();
console.log(rooms); // a Set containing all rooms (across every node)
- RedisAdapter.clients() is renamed to RedisAdapter.sockets()
See socketio/socket.io-adapter@130f28a
- RedisAdapter.clientRooms() is removed
It has been replaced by the fetchSockets()
method in Socket.IO v4:
const sockets = await io.in(theSocketId).fetchSockets();
if (sockets.length) {
console.log(sockets[0].rooms);
}
- RedisAdapter.customHook() and RedisAdapter.customRequest() are removed
Those methods will be replaced by a more intuitive API in a future iteration.
- support for Node.js 8 is dropped
See https://github.com/nodejs/Release
Links
- Diff: 5.4.0...6.0.0
5.4.0
5.3.0
5.2.0
Features
- increase default requestsTimeout to 5000 ms (#243)
Links
- Milestone: 5.2.0
- Diff: 5.1.0...5.2.0
5.1.0
Features
- add support for ArrayBuffer (#226)
Bug fixes
- use the requestid from response when deleting requests (#225)
Links
- Milestone: 5.1.0
- Diff: 5.0.1...5.1.0
5.0.1
5.0.0
Performance improvements
This is the first version compatible with socket.io v2. Please use previous versions (4.x) for socket.io v1.x. If not, you may encounter Cannot read property 'encode' of undefined
errors.
Milestone: 5.0.0
Diff: 4.0.1...5.0.0