Catch websocket connection issues

This commit is contained in:
nicolas.dorier 2019-01-28 15:12:40 +09:00
parent 4945a640a7
commit 47f8938b89

View File

@ -248,6 +248,9 @@ $(document).ready(function () {
socket.onmessage = function (e) {
fetchStatus();
};
socket.onerror = function (e) {
console.error("Error while connecting to websocket for invoice notifications (callback)");
};
}
catch (e) {
console.error("Error while connecting to websocket for invoice notifications");