realtime_client 2.0.0-dev.2 copy "realtime_client: ^2.0.0-dev.2" to clipboard
realtime_client: ^2.0.0-dev.2 copied to clipboard

Listens to changes in a PostgreSQL Database and via websockets. This is for usage with Supabase Realtime server.

realtime-dart #

Listens to changes in a PostgreSQL Database and via websockets.

A dart client for Supabase Realtime server.

pub package pub test

Usage #

Creating a Socket connection #

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()

Credits #

License #

This repo is licensed under MIT.

58
likes
0
pub points
97%
popularity

Publisher

verified publishersupabase.io

Listens to changes in a PostgreSQL Database and via websockets. This is for usage with Supabase Realtime server.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

collection, http, meta, web_socket_channel

More

Packages that depend on realtime_client