[new] add socket log error

This commit is contained in:
2021-01-10 11:44:15 +00:00
parent 8fa02ebc93
commit 8be1f53e65
2 changed files with 12 additions and 0 deletions

View File

@@ -103,6 +103,17 @@ socket.on('info', (msg) => {
console.log(msg);
});
// Log error in console
socket.on('error', (msg) => {
console.log(msg);
Snackbar.show({
text: msg,
pos: 'bottom-right',
duration: 5000,
backgroundColor: '#E64A19'
});
});
function update_your_res(tsp_file, fitness) {
// Stop blinking