Skip to content

Commit d7f0564

Browse files
committed
Updated documentation for API
1 parent 63f901a commit d7f0564

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

api/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ This module depends on `librespot-core` and provides an API to interact with the
1919
### Metadata
2020
- `POST \metadata\{type}\{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist`, `uri` is the standard Spotify uri.
2121

22+
### Events
23+
24+
You can subscribe for players events by creating a WebSocket connection to `/events`.
25+
The currently available events are:
26+
- `contextChanged`
27+
- `trackChanged`
28+
- `playbackPaused`
29+
- `playbackResumed`
30+
2231

2332
## Examples
2433

0 commit comments

Comments
 (0)