Class
-
nats
:
Connection
Represents a single network connection to the NATS server.
Methods
Closes a given connection.
Isolated Function
Closes a given connection.
Parameters
- forceful boolean (default false)
-
The graceful shutdown flag. If
true, the connection closes immediately. The default value isfalse.
-
Return Type
(Error?) ()or else anats:Errorif unable to complete the close operation.