Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: harmonyHub.off is not a function #1

Open
RoelVG opened this issue May 30, 2020 · 0 comments
Open

TypeError: harmonyHub.off is not a function #1

RoelVG opened this issue May 30, 2020 · 0 comments

Comments

@RoelVG
Copy link

RoelVG commented May 30, 2020

TypeError: harmonyHub.off is not a function
    at HarmonyHubWS.configHandler (/home/roel/chromecast-harmony-watchdog/src/harmony.js:64:16)
    at emitOne (events.js:116:13)
    at HarmonyHubWS.emit (events.js:211:7)
    at HarmonyHubWS.parseMessage (/home/roel/chromecast-harmony-watchdog/node_modules/harmonyhubws/lib/HarmonyHubWS.js:110:26)
    at WebSocket.socket.on (/home/roel/chromecast-harmony-watchdog/node_modules/harmonyhubws/lib/HarmonyHubWS.js:75:22)
    at emitOne (events.js:116:13)
    at WebSocket.emit (events.js:211:7)
    at Receiver.receiverOnMessage (/home/roel/chromecast-harmony-watchdog/node_modules/ws/lib/websocket.js:789:20)
    at emitOne (events.js:116:13)
    at Receiver.emit (events.js:211:7)

I get this error when a device starts casting to the configured Chromecast.

Changing "off" to "on" fixes this, but I'm not sure if the logic there makes sense then with the callback being registered again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant