Skip to content

Commit

Permalink
fix: No longer has infinite websocket connect loop
Browse files Browse the repository at this point in the history
  • Loading branch information
evrys committed Aug 1, 2024
1 parent 2245ac5 commit 8c47d2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/AutoReconnectingWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ export class AutoReconnectingWebsocket extends ReconnectingWebSocket {
if (this.opts.mock) {
this.opts.mock.handleWebsocketConnection(this)
} else {
this.reconnect()
origReconnect.apply(this)
}
origReconnect.apply(this)
}

this.changeUrl(url)
Expand Down

0 comments on commit 8c47d2a

Please sign in to comment.