examples/raw-websocket-handler-vercel/README.md
Note: This is the Vercel-optimized version of the raw-websocket-handler example. It uses the
hono/verceladapter and is configured for Vercel deployment.
Demonstrates raw WebSocket handling with direct actor connections and real-time chat functionality.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/raw-websocket-handler
npm install
npm run dev
onWebSocket for low-level WebSocket control and custom protocolsThis example demonstrates raw WebSocket handling for real-time chat:
src/backend/registry.ts): Uses onWebSocket handler for low-level WebSocket protocol controlRead more about WebSockets, state, and events.
MIT