Attaches the ClientProxy
instance to the given property
optional client metadata
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Close the connection to the server.
Create a properly formatted inbox subject.
Flush outbound queue to server and call optional callback when server has processed all data.
Report number of outstanding subscriptions on this connection.
Publish a message to the given subject, with optional reply and callback.
Publish a message with an implicit inbox listener as the reply. Message is optional. This should be treated as a subscription. You can optionally indicate how many messages you only want to receive using opt_options = {max:N}. Otherwise you will need to unsubscribe to stop the message stream. The Subscriber Id is returned.
Publish a message with an implicit inbox listener as the reply. Message is optional. This should be treated as a subscription. Request one, will terminate the subscription after the first response is received or the timeout is reached. The callback can be called with either a message payload or a NatsError to indicate a timeout has been reached. The Subscriber Id is returned.
Set a timeout on a subscription.
Unsubscribe to a given Subscriber Id, with optional max parameter.
Generated using TypeDoc
Attaches the
ClientProxy
instance to the given propertyhttps://github.com/nats-io/node-nats