registerWithFactory static method

void registerWithFactory()

Register this message type with the factory

Implementation

static void registerWithFactory() {
  RegisterableMessage.register<MsgPong>(
    Commands.pong,
    MsgPong.deserialize,
    () => MsgPong(nonce: 0),
  );
}