7.0.0 (2021-05-11)
- implement the serverSideEmit functionality (3a0f29f)
- remove direct redis dependency (c68a47c)
- rename the package to
@socket.io/redis-adapter
(3cac178)
- the library will no longer create Redis clients on behalf of the user.
Before:
io.adapter(redisAdapter({ host: "localhost", port: 6379 }));
After:
const pubClient = createClient({ host: "localhost", port: 6379 });
const subClient = pubClient.duplicate();
io.adapter(redisAdapter(pubClient, subClient));
6.1.0 (2021-03-12)
- implement utility methods from Socket.IO v4 (468c3c8)
- remove one round-trip for the requester (6c8d770)
6.0.1 (2020-11-14)
6.0.0 (2020-11-12)
- add support for Socket.IO v3 (d9bcb19)
- 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 (accross 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 https://github.com/socketio/socket.io-adapter/commit/130f28a43c5aca924aa2c1a318422d21ba03cdac
- 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
5.4.0 (2020-09-02)
- update node-redis version to 3.x (5b3ed58)
5.3.0 (2020-06-04)
- add support for Redis Cluster (7a19075)
5.2.0 (2017-08-24)
- increase default requestsTimeout to 5000 ms (37e28df)
5.1.0 (2017-06-04)
- use the requestid from response when deleting requests (4f08b1a)
- add support for ArrayBuffer (b3ad4ad)