mopidy.js icon indicating copy to clipboard operation
mopidy.js copied to clipboard

Get list of events from server

Open emiloberg opened this issue 9 years ago • 2 comments

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?

emiloberg avatar Nov 03 '15 11:11 emiloberg

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

adamcik avatar Nov 03 '15 11:11 adamcik

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.

jodal avatar Nov 18 '18 21:11 jodal