Open darkjeff99 opened 10 years ago
Hi
I'm a new developer in node.js and I use you amazing project for build new squeezebox UI.
It's work good for the moment, but now I want to handle the connection error.
How I know if the function .on it's ok ?
squeeze.on('register', function(){ //you're ready to use the api, eg. squeeze.getPlayers( function(reply) { console.dir(reply); }); });
If I try without logitech server, I have :
\node_modules\squeezenode\server.js:98 var apps = reply.result.appss_loop; ^ TypeError: Cannot read property 'appss_loop' of undefined
The node continue without connection.
Thanks for point this out. I'll take a look at it.
Hi
I'm a new developer in node.js and I use you amazing project for build new squeezebox UI.
It's work good for the moment, but now I want to handle the connection error.
How I know if the function .on it's ok ?
squeeze.on('register', function(){ //you're ready to use the api, eg. squeeze.getPlayers( function(reply) { console.dir(reply); }); });
If I try without logitech server, I have :
\node_modules\squeezenode\server.js:98 var apps = reply.result.appss_loop; ^ TypeError: Cannot read property 'appss_loop' of undefined
The node continue without connection.