Skip to content

Commit

Permalink
Log websocket close code (#1002)
Browse files Browse the repository at this point in the history
* Log websocket close code

* Create giant-dots-deny.md

* Also log wasClean
  • Loading branch information
lukasIO authored Jan 23, 2024
1 parent 8d1269d commit 24a8d6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-dots-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Log websocket close code
2 changes: 2 additions & 0 deletions src/api/SignalClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ export class SignalClient {
this.log.warn(`websocket closed`, {
...this.logContext,
reason: ev.reason,
code: ev.code,
wasClean: ev.wasClean,
state: this.state,
});
this.handleOnClose(ev.reason);
Expand Down

0 comments on commit 24a8d6e

Please sign in to comment.