node-ddp-client
node-ddp-client copied to clipboard
How to stop a subscription?
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?
Belated answer, but for the record, use ddpclient.unsubscribe(id)
(where id
is returned by ddpclient.subscribe
)
See implementation here