Skip to content

Commit

Permalink
Decline any current Log when clicking the 'close connection' button
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaj00 committed Feb 15, 2024
1 parent 5f2d77b commit 95ca189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
const closeConnection = () => {
console.log('Closing connection from button');
if (ws) {
ws.close()
declineIncomingLog();
ws.close();

// Send the response on the WebSocket
let webSocketResponse = {
Expand Down

0 comments on commit 95ca189

Please sign in to comment.