Options
All
  • Public
  • Public/Protected
  • All
Menu

A simple NATS client.

Hierarchy

  • NatsClient

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _client

_client: Nilable<Stan>

Accessors

client

  • get client(): Stan

Methods

connect

  • connect(): Promise<Stan>
  • Starts a new connection to a NATS server.

    Returns Promise<Stan>

    The promise with the base client.

exitOnClose

  • exitOnClose(): void
  • Registers the process events to close the client on exit.

    Returns void

Private tryClose

  • tryClose(): void

Generated using TypeDoc