realtime_client 0.0.1-dev.1 copy "realtime_client: ^0.0.1-dev.1" to clipboard
realtime_client: ^0.0.1-dev.1 copied to clipboard

outdated

Listens to changes in a PostgreSQL Database and via websockets. This is for usage with [Supabase Realtime](https://github.com/supabase/realtime) server.

Realtime Client #

Listens to changes in a PostgreSQL Database and via websockets.

This is for usage with Supabase Realtime server.

pub package pub test

Pre-release verion! This repo is still under heavy development and the documentation is evolving. You're welcome to try it, but expect some breaking changes.

Usage #

Creating a Socket connection #

You can set up one connection to be used across the whole app.

import 'package:realtime/realtime.dart';

var socket = Socket(REALTIME_URL);
socket.connect();

Socket Hooks

socket.onOpen(() => print('Socket opened.'));
socket.onClose(() => print('Socket closed.'));
socket.onError((e) => print('Socket error ${e.message}'));

Credits #

License #

This repo is liscenced 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](https://github.com/supabase/realtime) server.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

web_socket_channel

More

Packages that depend on realtime_client