Skip to content

0.7 Push Notifications

murph edited this page Mar 18, 2013 · 3 revisions

Back to 0.7 API

UDJ uses WebSockets to push notifications about resource changes as they happen on the server. WebSockets allow for easy, bi-directional communication between clients and servers.

Endpoints:

/players/player_id/active_playlist/updates

GET

This call opens up a WebSocket which will receive the active playlist for specified player every time the playlist is updated. An EOF will be sent by the server if the player goes inactive.

/players/player_id/users/updates

GET

This call opens up a WebSocket which will receive the list of users for a specified player every time the list is updated. An EOF will be sent by the server if the player goes inactive.

/players/player_id/permissions/updates

GET

This call opens up a WebSocket which will receive the a list of permissions that change when the permissions for a player change. An EOF will be sent by the server if the player goes inactive.