mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Catch websocket connection issues
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user