[QUESTION] - How can I stop consumer from server? #4904
Answered
by
jnmoyne
sujit-baniya
asked this question in
Q&A
-
Is it possible to stop consumer from consuming messages from the server? |
Beta Was this translation helpful? Give feedback.
Answered by
jnmoyne
Dec 21, 2023
Replies: 1 comment 2 replies
-
Consumers will consume messages only if clients are actively subscribed to them. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use a pull consumer on your worker (using the old JS API), or use Messages() (new simplified JS API), it will only receive messages when it actively pulls them (by calling Fetch() or Messages())