Supabase Logo

supabase_realtime

Dart client library for Supabase Realtime, to listen to changes in a PostgreSQL database over websockets.

Guides ยท Reference Docs

pub package pub test

Note

This package was published as realtime_client up to and including v2. That package is discontinued in favour of supabase_realtime.

Docs

The docs can be found on the official Supabase website.

Testing

The unit tests run without any external services:

dart test -x integration

The integration tests in test/realtime_integration_test.dart run against a real Supabase Realtime server. Start the local Supabase stack with the CLI first (from the repository root), then run the full suite (it exercises both protocol versions, 1.0.0 and 2.0.0):

supabase start
dart test
supabase stop

License

This repo is licensed under MIT.

Credits

Libraries

supabase_realtime
Client library for Supabase Realtime: subscribe to PostgreSQL database changes, broadcast messages, and presence over a websocket connection.