Skip to content

Commit

Permalink
Log when WebSocket closes.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 4, 2023
1 parent e555647 commit ca8ad30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/export/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ const trace = async () => {
},
onClose: () => {
// On close, reconnect.
console.error('WebSocket closed, reconnecting in 3 seconds...')
webSocketConnected = false
setTimeout(setUpWebSocket, 3000)
},
Expand Down

0 comments on commit ca8ad30

Please sign in to comment.