[new] add socket log error
This commit is contained in:
parent
8fa02ebc93
commit
8be1f53e65
|
|
@ -103,6 +103,17 @@ socket.on('info', (msg) => {
|
||||||
console.log(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) {
|
function update_your_res(tsp_file, fitness) {
|
||||||
|
|
||||||
// Stop blinking
|
// Stop blinking
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue