DispatchOptions
Controls who receives a published message.
Both browser and filter are predicates over the subscribing
{@link Browser}. When both are set, a subscriber must satisfy both
(browser identity AND filter). When neither is set, the message is
delivered to every current subscriber for the method.
Properties
browser
browser?: Browser;
Deliver only to subscribers whose originating {@link Browser} is this one. Useful for per-window UIs (e.g. a download progress panel that should only see downloads started in the same window).
filter
filter?: (browser: Browser) => boolean;
Deliver only to subscribers whose originating {@link Browser} is accepted by this predicate. Use for arbitrary filtering (groups of windows, etc.).