Skip to content

7.0.0

Compare
Choose a tag to compare
@darrachequesne darrachequesne released this 11 May 22:43
· 19 commits to master since this release
3242d8e

⚠️ 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