examples/cursors-raw-websocket/README.md
Demonstrates real-time cursor tracking and collaborative canvas using raw WebSocket handlers instead of RivetKit's higher-level WebSocket abstraction.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/cursors-raw-websocket
npm install
npm run dev
onWebsocket for low-level WebSocket control and custom protocolsThis example demonstrates low-level WebSocket handling for real-time collaboration:
src/backend/registry.ts): Uses raw onWebsocket handler for custom WebSocket protocol implementationRead more about WebSockets, state, and events.
MIT