Features
- Complete feature showcase: Demonstrates all major RivetKit concepts in one example
- Lifecycle hooks: Use
onWake,onSleep,onConnect, andonDisconnectfor actor lifecycle management - Scheduling: Schedule delayed actions with
schedule.at()andschedule.after() - HTTP and WebSocket: Handle both HTTP requests and WebSocket connections in actors
- Event broadcasting: Broadcast events to all connected clients with
c.broadcast() - Connection management: Track and manage multiple client connections per actor
Implementation
This comprehensive example brings together all Rivet Actor features in one place:
- Actor Definition (
src/backend/registry.ts): Demonstrates the complete feature set including lifecycle hooks, scheduling, events, state management, and WebSocket handling
Resources
Read more about actions, state, lifecycle hooks, scheduling, events, and WebSockets.



