forked from klnusbaum/UDJ-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
0.7 Push Notifications
murph edited this page Mar 18, 2013
·
3 revisions
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.
- /players/
player_id
/active_playlist/updates - /players/
player_id
/users/updates - /players/
player_id
/permissions/updates
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.
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.
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.