Skip to main content
This package works with Deno, Bun, Browsers
This package works with Deno
This package works with Bun
This package works with Browsers
Published
a week ago (3.0.0-46)
T
Auth
No documentation available
I
Authenticator

Authenticator is an interface that returns credentials.

c
AuthorizationError

Represents an error related to authorization issues. Note that these could represent an authorization violation, or that the account authentication configuration has expired, or an authentication timeout.

I
Backoff
No documentation available
f
backoff

Returns a Backoff with the specified interval policy set.

f
buildAuthenticator
No documentation available
f
canonicalMIMEHeaderKey
No documentation available
T
ClientPingStatus
No documentation available
c
ClosedConnectionError

Class representing an error thrown when an operation is attempted on a closed connection.

T
ClusterUpdateStatus
No documentation available
I
Codec
No documentation available
c
ConnectionError

Represents an error that occurs when a network connection fails. Extends the built-in Error class to provide additional context for connection-related issues.

f
createInbox
No documentation available
f
credsAuthenticator

Returns an Authenticator function that returns a JwtAuth. This is a convenience Authenticator that parses the specified creds and delegates to the jwtAuthenticator.

f
deadline
No documentation available
I
Deferred
No documentation available
f
deferred

Returns a Promise that has a resolve/reject methods that can be used to resolve and defer the Deferred.

I
Delay
No documentation available
f
delay
No documentation available
T
DisconnectStatus
No documentation available
c
DrainingConnectionError

The ConnectionDrainingError class represents a specific type of error that occurs when a connection is being drained.

v
Empty
No documentation available
T
ForceReconnectStatus
No documentation available
f
hasWsProtocol
No documentation available
f
headers
No documentation available
c
InvalidArgumentError
No documentation available
c
InvalidOperationError

InvalidOperationError is a custom error class that extends the standard Error object. It represents an error that occurs when an invalid operation is attempted on one of objects returned by the API. For example, trying to iterate on an object that was configured with a callback.

c
InvalidSubjectError

Represents an error that is thrown when an invalid subject is encountered. This class extends the built-in Error object.

I
JwtAuth
No documentation available
f
jwtAuthenticator

Returns an Authenticator function that returns a JwtAuth. If a seed is provided, the public key, and signature are calculated.

T
LDMStatus
No documentation available
E
Match
No documentation available
f
millis

Convert the specified Nanos into millis

I
Msg

Represents a message delivered by NATS. This interface is used by Subscribers.

T
MsgCallback
No documentation available
T
Nanos

Value expressed as Nanoseconds - use the nanos(millis) function to convert millis to nanoseconds. Note that in some environments this could overflow.

f
nanos

Converts the specified millis into Nanos

I
NKeyAuth
No documentation available
f
nkeyAuthenticator

Returns an Authenticator that returns a NKeyAuth based that uses the specified seed or function returning a seed.

N
nkeys
No documentation available
T
NoAuth
No documentation available
c
NoRespondersError

NoRespondersError is an error thrown when no responders (no service is subscribing to the subject) are found for a given subject. This error is typically found as the cause for a RequestError

T
Payload
No documentation available
c
Perf
No documentation available
c
PermissionViolationError

Class representing a Permission Violation Error. It provides information about the operation (either "publish" or "subscription") and the subject used for the operation and the optional queue (if a subscription).

c
ProtocolError

Represents an error encountered during protocol operations. This class extends the built-in Error class, providing a specific error type called ProtocolError.

I
Publisher
No documentation available
I
PublishOptions
No documentation available
T
ReconnectingStatus
No documentation available
T
ReconnectStatus
No documentation available
c
RequestError

Class representing an error that occurs during an request operation (such as TimeoutError, or NoRespondersError, or some other error).

I
RequestOptions
No documentation available
T
RequestStrategy
No documentation available
T
ReviverFn

A reviver function

T
ServerErrorStatus
No documentation available
I
ServersChanged

ServerChanged records servers in the cluster that were added or deleted.

T
SlowConsumerStatus
No documentation available
T
StaleConnectionStatus
No documentation available
I
Stats
No documentation available
T
Status
No documentation available
I
SubOpts

Subscription Options

T
SubscriptionOptions

Subscription Options

T
SyncIterator
No documentation available
f
syncIterator

syncIterator is a utility function that allows an AsyncIterator to be triggered by calling next() - the utility will yield null if the underlying iterator is closed. Note it is possibly an error to call use this function on an AsyncIterable that has already been started (Symbol.asyncIterator() has been called) from a looping construct.

I
Timeout
No documentation available
c
TimeoutError

TimeoutError is a custom error class that extends the built-in Error class. It is used to represent an error that occurs when an operation exceeds a predefined time limit.

I
TlsOptions

TlsOptions that can be specified to a client. Note that the options are typically runtime specific, so some clients won't support them at all. In other cases they will match to the runtime's TLS options.

I
TokenAuth
No documentation available
f
tokenAuthenticator

Returns a token authenticator for the specified token

c
UserAuthenticationExpiredError

Represents an error indicating that user authentication has expired. This error is typically thrown when a user attempts to access a connection but their authentication credentials have expired.

f
usernamePasswordAuthenticator

Returns a user/pass authenticator for the specified user and optional password

I
UserPass
No documentation available
f
wsconnect
No documentation available
T
Auth
No documentation available
I
Authenticator

Authenticator is an interface that returns credentials.

c
AuthorizationError

Represents an error related to authorization issues. Note that these could represent an authorization violation, or that the account authentication configuration has expired, or an authentication timeout.

I
Backoff
No documentation available
f
backoff

Returns a Backoff with the specified interval policy set.

c
Base64Codec
No documentation available
f
buildAuthenticator
No documentation available
T
CallbackFn
No documentation available
f
canonicalMIMEHeaderKey
No documentation available
f
checkOptions
No documentation available
f
checkUnsupportedOption
No documentation available
T
ClientPingStatus
No documentation available
c
ClosedConnectionError

Class representing an error thrown when an operation is attempted on a closed connection.

T
ClusterUpdateStatus
No documentation available
I
Codec
No documentation available
f
collect
No documentation available
f
compare
No documentation available
c
ConnectionError

Represents an error that occurs when a network connection fails. Extends the built-in Error class to provide additional context for connection-related issues.

f
createInbox
No documentation available
f
credsAuthenticator

Returns an Authenticator function that returns a JwtAuth. This is a convenience Authenticator that parses the specified creds and delegates to the jwtAuthenticator.

f
deadline
No documentation available
v
DEFAULT_MAX_RECONNECT_ATTEMPTS
No documentation available
f
defaultOptions
No documentation available
I
Deferred
No documentation available
f
deferred

Returns a Promise that has a resolve/reject methods that can be used to resolve and defer the Deferred.

I
Delay
No documentation available
f
delay
No documentation available
T
DisconnectStatus
No documentation available
I
Dispatcher
No documentation available
c
DrainingConnectionError

The ConnectionDrainingError class represents a specific type of error that occurs when a connection is being drained.

v
Empty
No documentation available
T
ErrorResult
No documentation available
f
extend
No documentation available
f
extractProtocolMessage
No documentation available
E
Feature
No documentation available
T
ForceReconnectStatus
No documentation available
f
getResolveFn
No documentation available
f
hasWsProtocol
No documentation available
f
headers
No documentation available
T
IdleHeartbeatFn

Called with the number of missed heartbeats. If the function returns true, the monitor will cancel monitoring.

T
v
INFO
No documentation available
c
InvalidArgumentError
No documentation available
c
InvalidOperationError

InvalidOperationError is a custom error class that extends the standard Error object. It represents an error that occurs when an invalid operation is attempted on one of objects returned by the API. For example, trying to iterate on an object that was configured with a callback.

c
InvalidSubjectError

Represents an error that is thrown when an invalid subject is encountered. This class extends the built-in Error object.

f
ipV4
No documentation available
f
isIP
No documentation available
f
isIPV4OrHostname
No documentation available
I
JwtAuth
No documentation available
f
jwtAuthenticator

Returns an Authenticator function that returns a JwtAuth. If a seed is provided, the public key, and signature are calculated.

E
Kind
No documentation available
T
LDMStatus
No documentation available
E
Match
No documentation available
v
MAX_SIZE
No documentation available
f
millis

Convert the specified Nanos into millis

I
Msg

Represents a message delivered by NATS. This interface is used by Subscribers.

I
MsgArg
No documentation available
T
MsgCallback
No documentation available
T
Nanos

Value expressed as Nanoseconds - use the nanos(millis) function to convert millis to nanoseconds. Note that in some environments this could overflow.

f
nanos

Converts the specified millis into Nanos

I
NKeyAuth
No documentation available
f
nkeyAuthenticator

Returns an Authenticator that returns a NKeyAuth based that uses the specified seed or function returning a seed.

N
nkeys
No documentation available
T
NoAuth
No documentation available
c
NoRespondersError

NoRespondersError is an error thrown when no responders (no service is subscribing to the subject) are found for a given subject. This error is typically found as the cause for a RequestError

f
parseIP
No documentation available
f
parseOptions
No documentation available
I
ParserEvent
No documentation available
f
parseSemVer
No documentation available
T
Payload
No documentation available
c
Perf
No documentation available
c
PermissionViolationError

Class representing a Permission Violation Error. It provides information about the operation (either "publish" or "subscription") and the subject used for the operation and the optional queue (if a subscription).

I
PH
No documentation available
c
ProtocolError

Represents an error encountered during protocol operations. This class extends the built-in Error class, providing a specific error type called ProtocolError.

f
protoLen
No documentation available
I
Publisher
No documentation available
I
PublishOptions
No documentation available
f
readAll
No documentation available
T
ReconnectingStatus
No documentation available
T
ReconnectStatus
No documentation available
f
render
No documentation available
c
RequestError

Class representing an error that occurs during an request operation (such as TimeoutError, or NoRespondersError, or some other error).

c
RequestOne
No documentation available
I
RequestOptions
No documentation available
T
RequestStrategy
No documentation available
T
Result

Result is a value that may have resulted in an error.

T
ReviverFn

A reviver function

T
SemVer
No documentation available
I
Server
No documentation available
T
ServerErrorStatus
No documentation available
I
ServersChanged

ServerChanged records servers in the cluster that were added or deleted.

f
setTransportFactory
No documentation available
c
SimpleMutex
No documentation available
T
SlowConsumerStatus
No documentation available
T
StaleConnectionStatus
No documentation available
E
State
No documentation available
I
Stats
No documentation available
T
Status
No documentation available
I
SubOpts

Subscription Options

T
SubscriptionOptions

Subscription Options

T
SyncIterator
No documentation available
f
syncIterator

syncIterator is a utility function that allows an AsyncIterator to be triggered by calling next() - the utility will yield null if the underlying iterator is closed. Note it is possibly an error to call use this function on an AsyncIterable that has already been started (Symbol.asyncIterator() has been called) from a looping construct.

v
TD
No documentation available
v
TE
No documentation available
I
Timeout
No documentation available
f
timeout
No documentation available
c
TimeoutError

TimeoutError is a custom error class that extends the built-in Error class. It is used to represent an error that occurs when an operation exceeds a predefined time limit.

I
TlsOptions

TlsOptions that can be specified to a client. Note that the options are typically runtime specific, so some clients won't support them at all. In other cases they will match to the runtime's TLS options.

I
TokenAuth
No documentation available
f
tokenAuthenticator

Returns a token authenticator for the specified token

c
UserAuthenticationExpiredError

Represents an error indicating that user authentication has expired. This error is typically thrown when a user attempts to access a connection but their authentication credentials have expired.

f
usernamePasswordAuthenticator

Returns a user/pass authenticator for the specified user and optional password

I
UserPass
No documentation available
T
ValueResult
No documentation available
f
writeAll
No documentation available
f
wsconnect
No documentation available
f
wsUrlParseFn
No documentation available