Skip to content

Commit

Permalink
Add: Better logging for websocket errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yestalgia committed Jan 12, 2024
1 parent 4a7a796 commit 35bb806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webaccess/res/simpledesk.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ function connect() {
}, 1000);
};

websocket.onerror = function() {
websocket.onerror = function(ev) {
console.error("QLC+ connection encountered error. Closing socket");
console.error("Error: " + ev.data)
ws.close();
};

Expand Down

0 comments on commit 35bb806

Please sign in to comment.