mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
Catch websocket connection issues
This commit is contained in:
parent
4945a640a7
commit
47f8938b89
@ -248,6 +248,9 @@ $(document).ready(function () {
|
|||||||
socket.onmessage = function (e) {
|
socket.onmessage = function (e) {
|
||||||
fetchStatus();
|
fetchStatus();
|
||||||
};
|
};
|
||||||
|
socket.onerror = function (e) {
|
||||||
|
console.error("Error while connecting to websocket for invoice notifications (callback)");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error("Error while connecting to websocket for invoice notifications");
|
console.error("Error while connecting to websocket for invoice notifications");
|
||||||
|
Loading…
Reference in New Issue
Block a user