1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-25 19:07:41 +00:00

Fixed websocket connection - Send on connect settings and output

This commit is contained in:
jcorporation
2018-06-13 00:29:58 +01:00
parent 401bd5302f
commit 998d675b2c
5 changed files with 48 additions and 33 deletions

View File

@@ -283,10 +283,8 @@ function webSocketConnect() {
try {
socket.onopen = function() {
console.log("connected");
/* emit request for mympd settings */
socket.send('MPD_API_GET_SETTINGS');
/* emit initial request for output names */
socket.send('MPD_API_GET_OUTPUTS');
//socket.send('MPD_API_GET_OUTPUTS');
//socket.send('MPD_API_GET_SETTINGS');
showNotification('Connected to myMPD','','','success');
$('#modalConnectionError').modal('hide');
app.route();