shutDown method

void shutDown(
  1. {MessageCallback callback}
)

Implementation

void shutDown({
  MessageCallback callback,
}) =>
    ZeroNet.instance.cmd(
      ZeroNetCmd.serverShutdown,
      id: i,
      callback: callback ??
          (message) {
            Message msg = Message.fromJson(json.decode(message));
            if (msg.cmd == 'confirm' && msg.id == i) {
              ZeroNet.instance.respond();
              i = 1;
            }
          },
    );