New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nats::Server shouldn't be called that way #1
Comments
Usage example for that class: https://github.com/FCO/nats/blob/3f943f1c4d684fd2cd67c1b87f740406a429b547/examples/cro-like.raku#L17 |
There are many official clients, so really you ought to follow their lead. I would not call this "Server". Perhaps It's confusing at first, because EVERYTHING is a client, except the NATS server itself. |
https://github.com/nats-io/nats.deno/blob/main/examples/nats-sub.ts#L61-L64 example Note that the official NATS libraries expose multiple APIs that do the same thing, but at different levels of detail. Consider this: The But while that example throws away the After some thought, I think you should rework it as the |
I’ve renamed Nats::Server to Nats::Client and also renamed Nats::Route to Nats::Subscriptions (there is already a Nats::Subscription). |
It's not a server, it shouldn't be called that way, maybe something like:
The text was updated successfully, but these errors were encountered: