8.0.0
Dependencies
Features
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.
- Reference: https://github.com/darrachequesne/notepack/releases/tag/3.0.0
- Diff: darrachequesne/notepack@2.3.0...3.0.1
Diff: 7.2.0...8.0.0