Skip to content

Commit

Permalink
fix websocket transport error detection
Browse files Browse the repository at this point in the history
  • Loading branch information
znewton committed Feb 1, 2022
1 parent 2484396 commit 8fe1cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/drivers/driver-base/src/documentDeltaConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ export class DocumentDeltaConnection
try {
const description = error?.description;
if (description && typeof description === "object") {
// That's a WebSocket. Clear it as we can't log it.
description.target = undefined;
if (error.type === "TransportError") {
isWebSocketTransportError = true;
}
// That's a WebSocket. Clear it as we can't log it.
description.target = undefined;
}
} catch(_e) {}

Expand Down

0 comments on commit 8fe1cf5

Please sign in to comment.