mopidy.js
mopidy.js copied to clipboard
Get list of events from server
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?
Don't think so, but that sounds like a good idea.
For what it's worth, commit e5386086d9d76319306214610c7b8f0a49c67964, 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.