Subscribes to a BiDi event, globally across all browsing contexts. @param event the event to subscribe to @param handler invoked with the event's parameters each time it fires @param the event's parameter type @return a subscription id that can be passed to #unsubscribe(String)
(Event<X> event, Consumer<X> handler)
| 56 | * @return a subscription id that can be passed to {@link #unsubscribe(String)} |
| 57 | */ |
| 58 | public final <X> String subscribe(Event<X> event, Consumer<X> handler) { |
| 59 | return handle.subscribe(event, handler); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Cancels a previously registered event subscription. |
no outgoing calls