Skip to content

Commit 75a0781

Browse files
committed
Testing PSYNC_S21 error codes for web socket connections.
1 parent 2347295 commit 75a0781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/client/sync/stream/AbstractRemote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export abstract class AbstractRemote {
396396
syncQueueRequestSize, // The initial N amount
397397
{
398398
onError: (e) => {
399-
if (e.message.includes('Authorization failed')) {
399+
if (e.message.includes('Authorization failed') || e.message.includes('PSYNC_S21')) {
400400
this.invalidateCredentials();
401401
}
402402
// Don't log closed as an error

0 commit comments

Comments
 (0)