Skip to content
Discussion options

You must be logged in to vote

When you do a subscribe and don't specify a filter subject, the filter subject is set to the subject specified in the subscribe. Note that the subject specified on subscribe is used to locate the stream. I have verified that this is the case in go as it is in JavaScript. The NATS cli can leave it blank because it is tied to the stream when created, so the filter is optional there. The reasoning behind this on the clients is that if the stream is modified, the client will start receiving messages on subjects that it can possibly not handle properly. If the filter is provided it must match the subject or be a wildcard.

With that aside, the API for subscribe is a bit challenging because it a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Nowogrodzki
Comment options

@Nowogrodzki
Comment options

@Nowogrodzki
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jnmoyne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants