subscriptionFilterEndpoint method
void
subscriptionFilterEndpoint(
- EventSubscription subscription,
- String endpoint, {
- Handler? behavior,
Adds a special callback to subscription
which triggers when an event with the uri endpoint
gets sent from the LCU.
If no behavior
is provided, the subscription's default handler is used. (This is effectively the same as never calling this function, however it is valid.)
Implementation
void subscriptionFilterEndpoint(
EventSubscription subscription, String endpoint,
{Handler? behavior}) {
behavior != null
? subscription.filterEndpoint(endpoint, behavior: behavior)
: subscription.filterEndpoint(endpoint);
}