We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7982e94 commit ac3df29Copy full SHA for ac3df29
src/client.ts
@@ -412,7 +412,7 @@ export class WmClient {
412
// Attempt to reconnect if not manually closed.
413
if (!this._isManuallyClosed) {
414
setTimeout(
415
- () => this._socketPromise === this._createSocket(),
+ () => (this._socketPromise = this._createSocket()),
416
this._options?.reconnectInterval ??
417
this.DEFAULT_RECONNECT_INTERVAL,
418
);
0 commit comments