npm @socket.io/redis-adapter 8.0.0

latest releases: 8.3.0, 8.2.1, 8.2.0...
21 months ago

Dependencies

Features

  • add option to allow usage of custom parser (#471) (73f6320)

Example with msgpackr:

import { unpack, pack } from "msgpackr";

io.adapter(createAdapter(pubClient, subClient, {
  parser: {
    encode(val) {
      return pack(val);
    },
    decode(val) {
      return unpack(val);
    }
  }
}));
  • remove deprecated methods (fb760d9)

BREAKING CHANGES

  • the remoteJoin(), remoteLeave(), remoteDisconnect() and sockets() methods are removed in favor of the official alternatives

Related: socketio/socket.io@b25495c

  • the format of Date objects is modified in a non backward-compatible way, as notepack.io now implements the MessagePack Timestamp extension type.

Reference: https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type

Previous versions of the adapter will not be able to parse the Date objects sent by newer versions.

Diff: 7.2.0...8.0.0

Don't miss a new redis-adapter release

NewReleases is sending notifications on new releases.