Adeptive / SoundTouch-NodeJS

Bose SoundTouch Node JS API
Apache License 2.0
34 stars 22 forks source link

Not working anymore, still maintain ? #6

Closed jaumard closed 6 years ago

jaumard commented 7 years ago

When trying to run the sample.js file, it crash

node sample.js 
Started Searching...
Lifestyle --> 192.168.1.12
/Users/jaumard/Downloads/test/node_modules/soundtouch/api.js:266
    if (json.nowPlayingUpdated != undefined) {
            ^

TypeError: Cannot read property 'nowPlayingUpdated' of undefined
    at SoundTouchAPI.socketUpdate (/Users/jaumard/Downloads/test/node_modules/soundtouch/api.js:266:13)
    at WebSocketConnection.<anonymous> (/Users/jaumard/Downloads/test/node_modules/soundtouch/api.js:253:21)
    at emitOne (events.js:96:13)
    at WebSocketConnection.emit (events.js:191:7)
    at WebSocketConnection.processFrame (/Users/jaumard/Downloads/test/node_modules/websocket/lib/WebSocketConnection.js:547:26)
    at /Users/jaumard/Downloads/test/node_modules/websocket/lib/WebSocketConnection.js:321:40
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)