Skip to content

Commit

Permalink
fix: increase WebSocket reconnect interval (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 1, 2024
1 parent 9a69ac4 commit 70f44f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/client/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function onClose() {
removeListeners();
connection = null;
reconnectCount++;
setTimeout(connect, 1000);
setTimeout(connect, 1000 * 1.5 ** reconnectCount);
}

// Establishing a WebSocket connection with the server.
Expand Down

0 comments on commit 70f44f2

Please sign in to comment.