examples/cursors-raw-websocket-vercel/README.md
Note: This is the Vercel-optimized version of the cursors-raw-websocket example. It uses the
hono/verceladapter and is configured for Vercel deployment.
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