Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix: prevent the collision between y-websocket and polling interval b…
…y handling the timing more gracefully

Signed-off-by: Benjamin Frueh <[email protected]>
  • Loading branch information
benjaminfrueh committed Oct 23, 2025
commit 564b4c91f1dd9fd6357f33d3d3a6dbb2105d31ae
2 changes: 1 addition & 1 deletion src/services/PollingBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const FETCH_INTERVAL_READ_ONLY = 30000
* when a browser window is considered invisible by the page visibility API
* https://developer.mozilla.org/de/docs/Web/API/Page_Visibility_API
*/
const FETCH_INTERVAL_INVISIBLE = 30000
const FETCH_INTERVAL_INVISIBLE = 20000

const FETCH_INTERVAL_NOTIFY = 30000

Expand Down
2 changes: 1 addition & 1 deletion src/services/y-websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ messageHandlers[messageAuth] = (
}

// @todo - this should depend on awareness.outdatedTime
const messageReconnectTimeout = 30000
const messageReconnectTimeout = 40000

/**
* @param {WebsocketProvider} provider
Expand Down
Loading