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

Control register #2

Open
darkjeff99 opened this issue Feb 25, 2014 · 1 comment
Open

Control register #2

darkjeff99 opened this issue Feb 25, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@darkjeff99
Copy link

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.

@piotrraczynski piotrraczynski self-assigned this May 16, 2014
@piotrraczynski piotrraczynski added this to the 1.0.0 milestone May 16, 2014
@piotrraczynski
Copy link
Owner

Thanks for point this out. I'll take a look at it.

@piotrraczynski piotrraczynski modified the milestones: 0.1.0, 1.0.0 May 16, 2014
@piotrraczynski piotrraczynski modified the milestones: 0.1.0, 1.0.0 Jan 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants