Skip to content

Commit

Permalink
Hide error for signalr connection
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Sep 24, 2024
1 parent 0ef093a commit 8fb6d6d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/js/UserHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ export default class ws {
})
});

console.log("[SIGNALR] Device Status");

emitter.emit('deviceStatus', { states });
});

Expand Down Expand Up @@ -90,8 +88,8 @@ export default class ws {

start() {
this.connection.start().catch((err) => {
if(err.message && err.message.includes(`Status code '401'`)) {
utils.clearLogin();
if(err.message && err.message.includes(`Error: Failed to start the connection: Error: WebSocket failed to connect`)) {
// We previously cleared login here, we dont need to do that anymore
} else toastr.error(err, "User Hub");
});
}
Expand Down

0 comments on commit 8fb6d6d

Please sign in to comment.