[new] add socket log error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user