examples/native-websockets/README.md
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