Listener
-
nats
:
StreamingListener
Represents the NATS streaming server connection to which a subscription service should be bound in order to receive messages of the corresponding subscription.
Methods
Stops consuming messages and detaches the service from the nats:StreamingListener.
Stops the nats:StreamingListener gracefully.
Stops the nats:StreamingListener forcefully.
LifeCycle Methods
Methods
Stops consuming messages and detaches the service from the nats:StreamingListener.
Parameters
- s service
-
Type descriptor of the service
-
Return Type
(error?) ()or else anats:Errorupon failure to detach the service
Stops the nats:StreamingListener gracefully.
-
Return Type
(error?) ()or else anats:Errorupon failure to stop the listener
Stops the nats:StreamingListener forcefully.
-
Return Type
(error?) ()or else anats:Errorupon failure to stop the listener
LifeCycle Methods
Binds a service to the nats:StreamingListener.
Parameters
- s service
-
Type descriptor of the service
- name string? (default ())
-
Name of the service
-
Return Type
(error?) ()or else anats:Errorupon failure to register the listener