Cotal TypeScript packages
    Preparing search index...

    Function readNatsInfoGreeting

    • Read the pre-auth NATS INFO greeting (plaintext, before any STARTTLS). Returns null if nothing usable answered. Used to distinguish a TLS-required NATS listener from a plaintext substitute without a TLS handshake. It does NOT establish mesh identity — INFO is unauthenticated.

      Parameters

      • server: string
      • timeoutMs: number = 1_000
      • OptionalonConnect: () => void

      Returns Promise<
          | {
              auth_required?: boolean;
              jetstream?: boolean;
              tls_required?: boolean;
          }
          | null,
      >