chore(lint): fixed FE console.logs and changed rules for BE
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// Try to parse socket message
|
||||
const { data: message, error: parseErr } = tryCatchSync(() => JSON.parse(event.data));
|
||||
if (parseErr) {
|
||||
console.error(`[WS] Error while parsing `, parseErr);
|
||||
// Stop execution with unparsable data
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,8 @@
|
||||
};
|
||||
|
||||
// On socket error
|
||||
socket.onerror = (err) => {
|
||||
// Close socket on error, and print to console
|
||||
console.error('[WS] Error: ', err);
|
||||
socket.onerror = () => {
|
||||
// Close socket on error
|
||||
socket.close();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user