realtime_client
2.13.2, released 6 weeks ago by supabase.io
Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket
What it does
It connects to a Supabase Realtime server over WebSocket and streams database change events. It supports both protocol versions 1.0.0 and 2.0.0 and handles reconnection logic.
AI-written summary of version 2.13.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real-time updates from a Supabase PostgreSQL database
- You want a lightweight client without extra dependencies
- You prefer a pure Dart implementation over JavaScript
Skip it when
- You already use supabase_flutter which bundles realtime
- You need advanced authentication or storage features beyond realtime
Strengths
- Supports both protocol versions
- Handles reconnection and null cell values gracefully
- Pure Dart, no native code
- MIT license
Weaknesses
- No UI helpers, only data layer
- Requires manual WebSocket handling
- Limited to Supabase Realtime only
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Add dependency, import package, call RealtimeClient.connect(url, token) and subscribe to channels
import 'package:realtime_client/realtime_client.dart';
final client = RealtimeClient.connect('wss://your-project.supabase.co/realtime/v1', 'anon-key');
client.subscribe('public:messages').listen((event) => print(event));Alternatives
Packages that do the same job and could replace realtime_client.
- supabase_flutter
Provides a higher-level client with auth, storage, and realtime bundled together
92Compare
Works with
Packages commonly used together with realtime_client: ones it builds on, ones built on it, and its own family.
- loggingrealtime_client depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- web_socket_channelrealtime_client depends on itCross‑platform WebSocket channel wrapper for Dart
- supabaseBuilt on realtime_clientDart client for Supabase, usable in non-Flutter Dart environments.