refactor: only decorate response for now

This commit is contained in:
cha0s 2021-01-27 16:27:50 -06:00
parent 6225ee26b6
commit b280c63799

View File

@ -5,12 +5,6 @@ const decorate = compose(
Packer(), Packer(),
); );
const ActionPacket = (latus) => class ActionPacket extends Packet { const ActionPacket = () => class ActionPacket extends Packet {};
static respond(packet) { export default () => decorate(ActionPacket());
latus.get('%store').dispatch(packet.data);
}
};
export default (latus) => decorate(ActionPacket(latus));