• Peek the oldest message currently present in the nodes message inbox. The message is not removed from the inbox.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          tag?: null | number;
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional tag?: null | number
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<{
        body: string;
        receivedAt: number;
        tag: number;
    }>

    • A promise that resolves to the oldest message currently present in the nodes message inbox.