You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
State <-->|Bi-directional Sync / JSON Payloads| WS
45
+
State <-->|Bi-directional Sync <br/> JSON Payloads| WS
46
46
WS -->|Persist Drawings/Chat| DB
47
47
```
48
48
49
49
### Core Components
50
-
-**HTTP API Server:** A RESTful Express service handling authentication, room creation, and initial metadata fetching.
50
+
-**HTTP API Server:** A RESTful Node.js Express service handling authentication, room creation, and initial metadata fetching.
51
51
-**WebSocket Server:** A lightweight Node `ws` server managing persistent TCP connections. It holds active rooms in memory (`Map<string, WebSocket[]>`) for O(1) routing, ensuring low-latency broadcasts of cursor movements and vector data.
52
52
-**Frontend (Next.js & Canvas):** A highly optimized React application that bypasses the Virtual DOM for real-time rendering.
0 commit comments