Listener -
nats
: StreamingListener
Represents the NATS Streaming Server connection, to which a subscription service should be bound to in order to receive messages of the corresponding subscription.
Constructor
__init
(Connection connection, string clientId, string clusterId, StreamingConfig? streamingConfig)
- connection Connection
-
An established NATS connection.
- clientId string ()
-
A unique identifier representing the client. The
clientId
should be unique across subscriptions. Therefore, multilpe subscription services cannot be bound to a single listener.
- clusterId string test-cluster
-
The ID of the cluster configured in the NATS server. Default value is
test-cluster
.
- streamingConfig StreamingConfig? ()
-
The configuration related to the NATS streaming connectivity.
Methods
LifeCycle Methods
Methods
LifeCycle Methods
Parameters
- s service
- name string (default ())
-
Return Type
(error)