Skip to content

Commit

Permalink
Add events details onto readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBurunkov committed Dec 10, 2020
1 parent 335da50 commit 6bb07c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ The following options are available:
* host - mpd service host, default value is 'localhost'.
* port - mpd service TCP port, default value is 6600.

Events
------

* ready - Emits after connected to the MPD service.
* error - Emits when any errors occured.
* update - Emits when got any updates from MPD service.
* status - Emits when MPD service status has been updated.
* disconnected - Emits after disconnecting from MPD service.


Example
------
This is a minimal exmaple which connects to a mpd running on localhost on the default port and prints the current playlist:
Expand Down

0 comments on commit 6bb07c7

Please # to comment.