Overview
Centrifuge is a Dart client for real-time communication with Centrifuge and Centrifugo servers over WebSockets. It enables Flutter and VM applications to subscribe to channels, receive live updates, and publish messages in real time. Designed for low-latency interactions, it supports connection management, reconnection logic, and message broadcasting across multiple platforms. Ideal for building chat apps, live dashboards, and collaborative tools requiring instant data synchronization.
Use cases
- Real-time chat applications
- Live dashboard updates
- Collaborative editing tools
- Push notifications
- Multiplayer game sync
Key features
- WebSocket-based real-time communication
- Automatic reconnection
- Channel subscription and publishing
- Cross-platform support
- Lightweight and efficient
- Secure token authentication
Suitable for
- Flutter mobile and web apps
- Server-side Dart services
- Real-time data streaming
- High-frequency event handling
Considerations
- Requires a running Centrifuge or Centrifugo server
- Needs proper authentication setup
- May require network permission configuration on mobile
- Depends on stable WebSocket connectivity