Readonly
clientReadonly
connectionReadonly
currentReadonly
databaseReadonly
mountsOptional
mpdReadonly
outputReadonly
partitionReadonly
playbackReadonly
playbackReadonly
reflectionReadonly
statusReadonly
stickersReadonly
storedStatic
prefixedDisconnect from the daemon
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyHelper function for parsing a response from the daemon into an array of objects
The daemon response
Markers are keys denoting the start of a new object within the response
Converts a key-value Map from the response into the desired target object
Remove all listeners, or those of the specified event.
Optional
event: string | symbolRemove the listeners of a given event.
Optional
fn: (...args: any[]) => voidOptional
context: anyOptional
once: booleanSend a command to the daemon. The returned promise will be resolved with an array containing the lines of the daemon's response.
The version (major, minor, patch) of the connected daemon