fix: packet coding

This commit is contained in:
cha0s 2020-06-30 18:01:20 -05:00
parent 7788d7fc92
commit 3dbc6dae48

View File

@ -16,8 +16,9 @@ export default function (Superclass) {
} }
static unpack(packet) { static unpack(packet) {
const data = super.unpack(packet); const unpacked = super.unpack(packet);
return msgpack.decode(data); unpacked.data = msgpack.decode(unpacked.data);
return unpacked;
} }
} }