registerWithFactory static method

void registerWithFactory()

Register this message type with the factory

Implementation

static void registerWithFactory() {
  RegisterableMessage.register<MsgInv>(
    Commands.inv,
    MsgInv.deserialize,
    () => MsgInv(),
  );
}