Skip to content

Releases: socketio/socket.io-redis-adapter

6.1.0

12 Mar 23:04
5f2de9b
Compare
Choose a tag to compare

Features

  • implement utility methods from Socket.IO v4 (468c3c8)

Performance Improvements

  • remove one round-trip for the requester (6c8d770)

Links

6.0.1

15 Nov 21:09
4dae265
Compare
Choose a tag to compare

Bug Fixes

  • typings: properly expose the createAdapter method (0d2d69c)
  • fix broadcasting (#361) (3334d99)

Links

6.0.0

12 Nov 15:27
2cab2e3
Compare
Choose a tag to compare

⚠️ This release is only compatible with Socket.IO v3. For Socket.IO v2, please use previous versions.

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

5.4.0

02 Sep 07:05
2e39996
Compare
Choose a tag to compare

Features

  • update node-redis version to 3.x (fa4d474)

Links

5.3.0

04 Jun 13:54
ed83ba9
Compare
Choose a tag to compare

Features

  • add support for Redis Cluster (7a19075)

Links

5.2.0

24 Aug 04:53
Compare
Choose a tag to compare

Features

  • increase default requestsTimeout to 5000 ms (#243)

Links

5.1.0

04 Jun 06:43
Compare
Choose a tag to compare

Features

  • add support for ArrayBuffer (#226)

Bug fixes

  • use the requestid from response when deleting requests (#225)

Links

5.0.1

13 May 05:16
Compare
Choose a tag to compare

Bug fixes

  • fix broken protocol in 5.0.0 (#221)

Milestone: 5.0.1
Diff: 5.0.0...5.0.1

5.0.0

10 May 23:43
Compare
Choose a tag to compare

Performance improvements

  • use notepack instead of msgpack-lite (#218)
  • use pattern matching at the namespace level (#217)

⚠️ Breaking changes ⚠️

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

4.0.1

10 May 23:15
Compare
Choose a tag to compare

Bug fixes

  • fix duplicate identifier declaration (#213)

Milestone: 4.0.1
Diff: 4.0.0...4.0.1