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

Get list of events from server #9

Open
emiloberg opened this issue Nov 3, 2015 · 2 comments
Open

Get list of events from server #9

emiloberg opened this issue Nov 3, 2015 · 2 comments

Comments

@emiloberg
Copy link

Hi,

Is there any way of getting the list of all possible events from the server?

To get all methods, we can do a {method: 'core.describe'} call. Is there a way to do the same thing with events, e.g. a {method: 'core.CoreListener.describe'} call?

@adamcik
Copy link
Member

adamcik commented Nov 3, 2015

Don't think so, but that sounds like a good idea.

@jodal jodal changed the title Question: Getting list of events from server Feature request: Get list of events from server Nov 18, 2018
@jodal jodal changed the title Feature request: Get list of events from server Get list of events from server Nov 18, 2018
@jodal
Copy link
Member

jodal commented Nov 18, 2018

For what it's worth, commit e538608, which will be part of the upcoming Mopidy.js 1.0 release, adds an aggregate event named event that is emitted for all events. Subscribers are called with two arguments: the event's full name and the event object.

This should make it a bit easier to explore what events Mopidy.js emits.

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

No branches or pull requests

3 participants