Object -
nats
:
Connection
Represents a single network connection to the NATS server.
Constructor
__init
(string[] url, ConnectionConfig? config)
- url string[] [DEFAULT_URL]
-
The NATS Broker URL. For a clustered use case, pass the URLs as a string array
- config ConnectionConfig? ()
-
Configurations associated with the NATS client to establish a connection with the server
Methods
Closes a given connection.