1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-30 08:56:52 +02:00

Use connect_error event

This commit is contained in:
Adam Stachowicz 2021-07-18 20:59:00 +02:00
parent 59ebe134f1
commit 5bd3184ebf

View File

@ -46,9 +46,9 @@ export default {
transports: ['websocket']
});
if (!socket.connected) {
console.error("Failed to connect to the backend")
}
socket.on("connect_error", (err) => {
console.error(`Failed to connect to the backend. Socket.io connect_error: ${err.message}`);
});
socket.on('info', (info) => {
this.info = info;