Warning This repository has been moved to the supabase-flutter repo.
Listens to changes in a PostgreSQL Database and via websockets.
A dart client for Supabase Realtime server.
You can set up one connection to be used across the whole app.
import 'package:realtime_client/realtime_client.dart';
var client = RealtimeClient(REALTIME_URL);
client.connect();
Socket Hooks
client.onOpen(() => print('Socket opened.'));
client.onClose((event) => print('Socket closed $event'));
client.onError((error) => print('Socket error: $error'));
Disconnect the socket
Call disconnect()
on the socket:
client.disconnect()
- https://github.com/supabase/realtime-js - ported from realtime-js library
This repo is licensed under MIT.