examples/native-websockets-vercel/README.md
Note: This is the Vercel-optimized version of the native-websockets example. It uses the
hono/verceladapter and is configured for Vercel deployment.
Demonstrates native WebSocket integration with Rivet Actors for real-time bidirectional communication.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/native-websockets
npm install
npm run dev
onConnect and onDisconnect hooksThis example demonstrates native WebSocket integration with Rivet Actors:
src/backend/registry.ts): Shows how to use native WebSocket APIs with actors for real-time communicationRead more about WebSockets, events, and lifecycle hooks.
MIT