thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
648 stars 95 forks source link

TypeError: Cannot read property 'stop' of null #55

Open WeeJeWel opened 7 years ago

WeeJeWel commented 7 years ago
TypeError: Cannot read property 'stop' of null
    at Client.onclose (/node_modules/castv2-client/lib/senders/platform.js:42:21)
    at Client.g (events.js:260:16)
    at emitNone (events.js:72:20)
    at Client.emit (events.js:166:7)
    at TLSSocket.onclose (/node_modules/castv2-client/node_modules/castv2/lib/client.js:59:10)
    at TLSSocket.g (events.js:260:16)
    at emitOne (events.js:82:20)
    at TLSSocket.emit (events.js:169:7)
    at TCP._onclose (net.js:486:12)

Seems that the heartbeat isn't initialized

thibauts commented 7 years ago

Are you catching error events as in the readme exemple code ?