Skip to content

Commit

Permalink
Update live to v0.14.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 14, 2024
1 parent a6a1855 commit 843376c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@socketry/live/Live.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@socketry/live/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@socketry/live": "^0.13"
"@socketry/live": "^0.14"
},
"scripts": {
"postinstall": "bundle exec bake utopia:node:update"
Expand Down
2 changes: 1 addition & 1 deletion public/_components/@socketry/live/Live.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Live {
// Explicit disconnect will clear `this.#server`:
if (this.#server && !this.#reconnectTimer) {
// We need a minimum delay otherwise this can end up immediately invoking the callback:
const delay = Math.max(100 * (this.#failures + 1) ** 2, 60000);
const delay = Math.min(100 * (this.#failures ** 2), 60000);
this.#reconnectTimer = setTimeout(() => {
this.#reconnectTimer = null;
this.connect();
Expand Down
2 changes: 1 addition & 1 deletion public/_components/@socketry/live/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@socketry/live",
"type": "module",
"version": "0.13.0",
"version": "0.14.0",
"description": "Live HTML tags for Ruby.",
"main": "Live.js",
"repository": {
Expand Down

0 comments on commit 843376c

Please sign in to comment.