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