Skip to content
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!).

removeFilter( filter )

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"

removeFilter( filters )

This override allows you to provide an array of filters, like this:

postal.fedx.removeFilter([
    { channel: 'data', topic: '#', direction: 'out' },
    { channel: 'postal', topic: '#' }
]); 

Clone this wiki locally