7.0.0
The package was renamed to @socket.io/redis-adapter
, in order to match the name of the Redis emitter (@socket.io/redis-emitter
).
Features
- implement the serverSideEmit functionality (3a0f29f)
- remove direct redis dependency (c68a47c)
- rename the package to
@socket.io/redis-adapter
(3cac178)
BREAKING CHANGES
- 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));
Links
- Diff: 6.1.0...7.0.0