Open mitar opened 8 years ago
you can call unsubscribe() to remove a listener
Is this documented/official API?
@sampaiodiego I have use unsubscribe to stop listener, and I found streamer.subscriptions has been remove, but I use google develop tool to see the websocket data stream and I found I stop subscriptions still get data from server.
It seem not realy unsubscription the listener.
I found the way to kill subs, just stop(eventName) .
@Micjoyce is it possible to call that stop(eventName) on through websocket/DDP ?
you guys might want have a look at https://github.com/RocketChat/meteor-streamer/pull/31
It seems there is no way to remove a listener?
If I understand correctly, events are send only to those clients which are listening for a particular event type? So if you want to stop listening to some event type, this is not possible at the moment?