Closed hklages closed 3 years ago
Subscription works await coordinator.GroupRenderingControlService.Events.on(ServiceEvents.Data, data => { ... }
await coordinator.GroupRenderingControlService.Events.on(ServiceEvents.Data, data => { ... }
Unsubscribing: const x = await coordinator.GroupRenderingControlService.Events.removeAllListener(ServiceEvents.Data)
const x = await coordinator.GroupRenderingControlService.Events.removeAllListener(ServiceEvents.Data)
Produces an exception:
.... coordinator.GroupRenderingControlService.Events.removeAllListener is not a function
... my mistake - removeAllListeners -- the s was missing.
Subscription works
await coordinator.GroupRenderingControlService.Events.on(ServiceEvents.Data, data => { ... }
Unsubscribing:
const x = await coordinator.GroupRenderingControlService.Events.removeAllListener(ServiceEvents.Data)
Produces an exception: