Repository navigation
OBJ-92 — YJS client wired (two-tab convergence) - #43
Merged
objectgyan merged 1 commit intoMay 17, 2026
Merged
Conversation
Wire y-websocket client into the document editor. Each Field value is
bound to a shared Y.Map entry keyed by field id; opening the same doc
in two tabs shares one Y.Doc instance per client and converges via the
server's /ws/docs/{id} endpoint (OBJ-81).
- useYDoc hook: Y.Doc + WebsocketProvider with maxBackoffTime=10s
- ydispatch: SET_FIELD_BODY writes to Y.Map for broadcast
- observeDeep on Y.Map: remote changes dispatched into React draft
- AwarenessIndicator: colored dot per peer per field
- collab-status banner: connected / connecting indicator
- Playwright two-context test: 76ms convergence (target <200ms)
OBJ-92 M8.3 — YJS client wired (two-tab convergence)
Milestone: M8 · Wave: 3 SummaryWire Acceptance
Validation
Branch / PRBranch from |
objectgyan
added a commit
that referenced
this pull request
May 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
y-websocketclient into the document editor via auseYDochook that creates aY.Doc+WebsocketProviderper document idY.Mapentry keyed by field id; local edits write to Y.Map and broadcast via/ws/docs/{id}; remote Y.Map changes update the React draftmaxBackoffTime: 10_000(y-websocket built-in)Test plan
pnpm lintpassespnpm typecheckpassespnpm buildpassesscripts/validate-obj-92.ps1exits 0