Clients -
nats :
StreamingProducer
Constructor
__init
(Connection conn, string clientId, string clusterId, StreamingConfig? streamingConfig)
- conn Connection
- clientId string ()
- clusterId string test-cluster
- streamingConfig StreamingConfig? ()
Remote Methods
Methods
Publishes data to a given subject.
-
Return Type
(string | Error) string
value representing the NUID (NATS Unique Identifier) of the published message, if the message gets successfully published and acknowedged by the NATS server ORnats/Error
withnuid
andmessage
fields in case an error occurs in publishing, the timeout elapses while waiting for the acknowledgement ORnats/Error
only with themessage
field in case an error occurrs even before publishing is completed