Skip to content

Commit

Permalink
simplify onclose handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Aug 1, 2023
1 parent 422a680 commit 6d57206
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webclient/src/agave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ export class AgaveClient {
resolve(this);
};

// TODO - handle this better
// TODO - handle this better, understand when and why it happens.
this.socket.onclose = (_ev: CloseEvent) => {
setTimeout(function () {
console.warn("connection failed. refresh to retry.");
}, 3000);
console.warn("AGAVE websocket connection closed.");
};

// handle incoming messages
Expand Down

0 comments on commit 6d57206

Please sign in to comment.