svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
81 stars 18 forks source link

GroupRenderingControlService, removeAllListener - is not a function #86

Closed hklages closed 3 years ago

hklages commented 3 years ago

Subscription works await coordinator.GroupRenderingControlService.Events.on(ServiceEvents.Data, data => { ... }

Unsubscribing: const x = await coordinator.GroupRenderingControlService.Events.removeAllListener(ServiceEvents.Data)

Produces an exception:

.... 
 coordinator.GroupRenderingControlService.Events.removeAllListener is not a function
hklages commented 3 years ago

... my mistake - removeAllListeners -- the s was missing.