Network: {
    createContainer: ((deep) => Promise<number>);
    getCurrentStatus: (({deep:) => Promise<string>);
    saveNetworkStatus: ((options) => Promise<void>);
} = ...

Type declaration

  • createContainer: ((deep) => Promise<number>)
      • (deep): Promise<number>
      • Creates a new container link for the network status.

        Parameters

        • deep: DeepClient<Link<number>>

          The DeepClient object instance.

        Returns Promise<number>

        A Promise that resolves with the ID of the new container.

  • getCurrentStatus: (({deep:) => Promise<string>)
      • ({deep:): Promise<string>
      • Asynchronously get the current status of network connectivity.

        Parameters

        • {deep:: {
              containerLinkId: number;
              deep: DeepClient<Link<number>>;
          }

          DeepClient, containerLinkId: number}

          • containerLinkId: number
          • deep: DeepClient<Link<number>>

        Returns Promise<string>

  • saveNetworkStatus: ((options) => Promise<void>)
      • (options): Promise<void>
      • Saves network status to a custom deep database.

        Parameters

        Returns Promise<void>