Skip to content

Commit

Permalink
Merge pull request #340 from GetStream/vishal/connection-recovery
Browse files Browse the repository at this point in the history
Force resolve wsPromise upon recovery
  • Loading branch information
vishalnarkhede committed May 29, 2020
2 parents d67d1da + 1c5323d commit 47eb8b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@ export class StreamChat {
type: 'connection.recovered',
});
}

this.wsPromise = Promise.resolve();
this.setUserPromise = Promise.resolve();
};

/*
Expand Down

0 comments on commit 47eb8b5

Please sign in to comment.