There was an error while loading. Please reload this page.
this page describes the WebSocket interface to communicate with the audio player via a WebSocket.
connect to: ws://localhost:8080/ws
ws://localhost:8080/ws
since only strings can be sent via WebSocket, we will have to send our data (JSON objects) stringified.
JSON.stringify({ apiModule: "data", endpoint: "displayname", data: null });
JSON.stringify({ apiModule: "data", endpoint: "playlists", data: null });
JSON.stringify({ apiModule: "data", endpoint: "volume", data: null });
JSON.stringify({ apiModule: "data", endpoint: "cover", data: null });
JSON.stringify({ apiModule: "data", endpoint: "radioProgramme", data: null });
JSON.stringify({ apiModule: "data", endpoint: "accentColour", data: null });
JSON.stringify({ apiModule: "control", endpoint: "next", data: null });
JSON.stringify({ apiModule: "control", endpoint: "last", data: null });
JSON.stringify({ apiModule: "control", endpoint: "playPause", data: null });
JSON.stringify({ apiModule: "control", endpoint: "volume", data: {value in %} });
JSON.stringify({ apiModule: "control", endpoint: "load/playlist", data: {playlist index} });
JSON.stringify({ apiModule: "control", endpoint: "load", data: {song index} });
JSON.stringify({ apiModule: "general", endpoint: "version", data: null });
JSON.stringify({ apiModule: "game", endpoint: "validate-user", data: {user key} });
JSON.stringify({ apiModule: "game", endpoint: "library", data: null });
JSON.stringify({ apiModule: "game", endpoint: "library", data: JSON.stringify({ id: {igdbId}, user: {user key} }) });