Create a listener for a given scope with createListener and dispatch events for a given scope with dispatchEvent.
For each supported event type, create a new instance of ScopedEventRelay and expose it as a property,
where the scope identifies the target the event belongs to.
A scope consists of one or more values that identify the target or context of an event, such as a clientId string.
A scoped event relay.
Create a listener for a given scope with
createListenerand dispatch events for a given scope withdispatchEvent. For each supported event type, create a new instance ofScopedEventRelayand expose it as a property, where the scope identifies the target the event belongs to.A scope consists of one or more values that identify the target or context of an event, such as a
clientIdstring.Example
Will print this: