ead57baf6f
Fix linter warnings
2026-01-27 21:13:43 -05:00
56aa8dc9bd
Route awareness messages between peers
2026-01-27 21:13:26 -05:00
93bb462ffa
Add awareness broadcast to session
2026-01-27 21:13:07 -05:00
853fcba641
Add type-safe message decoding
2026-01-27 21:12:41 -05:00
0f506faa5f
Apply biome formatting fixes
...
Reorder imports to match biome style guide.
2026-01-27 21:05:17 -05:00
4b4b434bf8
Update session test mocks to use WsData type
...
Change mock websocket objects in session tests to include both room
and client fields, matching the WsData interface definition.
2026-01-27 21:04:54 -05:00
00c9a140c6
Fix type assertion in protocol decode test
...
Use 'as const' on the type field to ensure the literal type "join" is
preserved, matching the ClientMessage union type requirements.
2026-01-27 21:04:17 -05:00
d654a1bcdf
Add proper typing to integration test websocket mocks
...
Import and apply WsData type to the test server's websocket handlers
to ensure mock websocket objects match production typing.
2026-01-27 21:03:52 -05:00
0235b2c3e6
Fix websocket data type for room and client storage
...
Add WsData interface to properly type the websocket data object that
stores room name and client reference. This fixes type errors where
ws.data was previously untyped and causing compilation failures.
2026-01-27 21:03:19 -05:00
8ce1e098e6
Make session cleanup atomic in leave()
2026-01-27 17:59:49 -05:00
2de33370cd
Add WebSocket.send() error handling
2026-01-27 17:57:04 -05:00
bad4cdac51
Add room name validation to prevent DoS
2026-01-27 17:55:40 -05:00
a07618deb5
Fix biome lint errors in integration.test.ts
2026-01-27 17:53:12 -05:00
7e92cf251a
Add integration test for concurrent websocket edits
...
Tests verify that:
- Two concurrent clients can both insert text and CRDT resolves correctly
- Three clients with sequential edits all converge to the same state
- No data is lost during concurrent operations
- The delete-all-insert-all bug is fixed
2026-01-27 16:26:21 -05:00
0a71e7b321
Fix linting errors and formatting
2026-01-27 16:20:42 -05:00
83dac38f29
Add room cleanup to remove empty sessions
2026-01-27 16:19:41 -05:00
73ee70c52a
Add error handling for Yjs operations
2026-01-27 16:17:53 -05:00
68a7517dec
Fix race condition in vim connect with ready signal
2026-01-27 16:17:33 -05:00
925c7a3c0d
Fix client identity tracking to prevent memory leak
2026-01-27 16:16:14 -05:00
cb73ceb2d3
Add initial generation
2026-01-27 16:02:36 -05:00