Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

A pure Dart implementation of the Pusher Channels Client

pusher_channels is a pure Dart pusher channels client.

This client is work in progress and it is unstable.

Usage

A simple usage example:

import 'package:pusher_channels/pusher_channels.dart';

main() {
  final pusher = Pusher(key: 'YOUR_APP_KEY');
  await pusher.connect();
  final channel = pusher.subscribe('channel');
  channel.bind('event', (event) {
    print('WOW event: $event');
  });
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Contribute and download source code on GitHub

Exit mobile version