examples/raw-websocket-handler-proxy-vercel/README.md
Note: This is the Vercel-optimized version of the raw-websocket-handler-proxy example. It uses the
hono/verceladapter and is configured for Vercel deployment.
Demonstrates raw WebSocket handling using a proxy endpoint pattern for routing connections to actors.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/raw-websocket-handler-proxy
npm install
npm run dev
onWebSocket for low-level WebSocket control and custom protocolsThis example demonstrates routing WebSocket connections through a proxy:
src/backend/registry.ts): Uses proxy endpoint pattern to route WebSocket connections to actorsRead more about WebSockets, state, and events.
MIT