Chat Room (Next.js)

Chat Room (Next.js)

Next.js chat room demonstrating real-time messaging with actor state management.

Features

  • Next.js integration: Use RivetKit actors with Next.js App Router and server actions
  • Real-time messaging: Broadcast messages to all connected clients instantly
  • Persistent chat history: Message history automatically saved in actor state
  • Multiple chat rooms: Each room is a separate actor instance with isolated state

Implementation

This example demonstrates using Rivet Actors with Next.js:

Resources

Read more about Next.js integration, actions, state, and events.