Add support for the no_responders feature
Closed this issue · 2 comments
Observed behaviour
The old client enabled the no_responders client feature by default, but this one seems to have it disabled and no way to enable it currently.
This feature has been immensely helpful for request-reply patterns so I'd love to see it added back in. I can take a look at getting an initial PR started for it :)
Expected behaviour
Clients should receive a NatsNoRespondersException (503 status code) when sending a subject message that has a reply_to header but no subscriber is registered to receive that subject.
Server and client version
.NET client v2.0.0
Latest NATS server
Host environment
Latest Linux ARM docker image
Steps to reproduce
Publish a message/request with a reply_to header to a subject that has no subscribers. The reply_to address should receive an empty message with an error code 503 in the header indicating that no eligible subscriber for that subject is registered.