-
Notifications
You must be signed in to change notification settings - Fork 22
removeFilter
Jim Cowart edited this page Jan 16, 2013
·
1 revision
The method used to remove filters from the postal.fedx.filters object (it's NOT recommend that you delete/mutate those members directly!).
Where the filter argument is an object literal containing channel, topic and direction. For example:
// removes the outbound filter for "data" channel, any topic
postal.fedx.removeFilter({ channel: 'data', topic: '#', direction: 'out' });
// removes the bi-directional filter on the "postal" channel, any topic
postal.fedx.removeFilter({ channel: 'postal', topic: '#' }); // direction defaults to "both"This override allows you to provide an array of filters, like this:
postal.fedx.removeFilter([
{ channel: 'data', topic: '#', direction: 'out' },
{ channel: 'postal', topic: '#' }
]);