node-ddp-client icon indicating copy to clipboard operation
node-ddp-client copied to clipboard

How to stop a subscription?

Open jsb188 opened this issue 8 years ago • 1 comments

I don't see a way to stop a subscription after it has been initiated.

Am I suppose to close the connection every time I want to stop the subscriptions?

jsb188 avatar Apr 14 '16 07:04 jsb188

Belated answer, but for the record, use ddpclient.unsubscribe(id) (where id is returned by ddpclient.subscribe) See implementation here

dimofte avatar Oct 24 '17 07:10 dimofte