npm @socket.io/redis-adapter 7.0.0

latest releases: 8.3.0, 8.2.1, 8.2.0...
2 years ago

⚠️ IMPORTANT ⚠️

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

Don't miss a new redis-adapter release

NewReleases is sending notifications on new releases.