Skip to content

Commit 70f44f2

Browse files
authored
fix: increase WebSocket reconnect interval (#3339)
1 parent 9a69ac4 commit 70f44f2

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/client

1 file changed

+1
-1
lines changed

packages/core/src/client/hmr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function onClose() {
222222
removeListeners();
223223
connection = null;
224224
reconnectCount++;
225-
setTimeout(connect, 1000);
225+
setTimeout(connect, 1000 * 1.5 ** reconnectCount);
226226
}
227227

228228
// Establishing a WebSocket connection with the server.

0 commit comments

Comments
 (0)