A pure Dart implementation of the Pusher Channels Client

Overview

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.

You might also like...

simplified man-pages, a tldr.sh client

simplified man-pages, a tldr.sh client

Report bug ยท Request feature Table of contents Overview Screenshots CI Build and run Bugs and feature requests Contributing Creators Copyright and lic

Dec 27, 2022

An http request client, which supports Manageable Requests Cancellation, Request Policy (Timeout and Retry), Easier Multipart Requests, etc.

A wrapper around Dart's http package, which supports Manageable Requests Cancellation, Request Policy (Timeout and Retry), Easier Multipart Requests, Error Handling, etc.

Oct 10, 2021

This is the client application for connecting to cptserver

This is the client application for connecting to cptserver. CPT stands for Course Participation Tracker.

Nov 2, 2022

An example todo list back end project that uses gRPC for client-server communication and Firestore for data storage

An example todo list back end project that uses gRPC for client-server communication and Firestore for data storage

Apr 18, 2022

A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

A Dart build script that downloads the Protobuf compiler and Dart plugin to streamline .proto to .dart compilation.

Oct 26, 2022

Dart wrapper via dart:ffi for https://github.com/libusb/libusb

libusb Dart wrapper via dart:ffi for https://github.com/libusb/libusb Environment Windows(10) macOS Linux(Ubuntu 18.04 LTS) Usage Checkout example Fea

Dec 20, 2022

Extensible Dart interpreter for Dart with full interop

dart_eval is an extensible interpreter for the Dart language, written in Dart. It's powered under the hood by the Dart analyzer, so it achieves 100% c

Dec 28, 2022

Quiver is a set of utility libraries for Dart that makes using many Dart libraries easier and more convenient, or adds additional functionality.

Quiver is a set of utility libraries for Dart that makes using many Dart libraries easier and more convenient, or adds additional functionality.

Jan 2, 2023

AOP for Flutter(Dart)

AOP for Flutter(Dart)

AspectD Salute to AspectJ. AspectD is an AOP(aspect oriented programming) framework for dart. Like other traditional aop framework, AspectD provides c

Jan 7, 2023
Comments
  • Android compilation error

    Android compilation error

    When i try to run my project with this dependency pusher_channels_flutter: ^1.0.1 This error appears ->

    /Users/julian/Documents/work/app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:144: error: cannot access ConnectionEventListener
          flutterEngine.getPlugins().add(new com.pusher.channels_flutter.PusherChannelsFlutterPlugin());
                                    ^
      class file for com.pusher.client.connection.ConnectionEventListener not found
    1 error
    
    invalid question 
    opened by julianramoscalvo 2
  • Does pusher_channels support pusher private channel?

    Does pusher_channels support pusher private channel?

    Hello there, Thanks very much for creating such an easy package for Pusher integration. I am currently using it as public channel with my flutter app. Is this support private channel too? I couldn't find doc related to it.

    help wanted 
    opened by ziagit 1
  • Ability to get socket identifier

    Ability to get socket identifier

    It would be pretty nice to be able to use the socket connection identifier for cases where you may want to ping a message to other clients from say a backend API, without pinging the sender.

    help wanted 
    opened by andreaselia 2
  • Error decoding already decoded json

    Error decoding already decoded json

    The onMessage method tries to decode an already decoded json payload, throwing an exception.

      void onMessage(data) {
        final json = jsonDecode(data);
        if (json.containsKey('channel')) {
          eventHandler(json['event'], json['channel'], jsonDecode(json['data']));
        } else {
          _eventCallbacks[json['event']]?.call(json['data'] ?? {});
        }
      }
    
    opened by nicobritos 0
Releases(0.1.6)
A Pure Dart Utility library that checks for an Active Internet connection

This Code comes from https://github.com/komapeb/data_connection_checker * ?? Internet Connection Checker A Pure Dart Utility library that checks for a

Rounak Tadvi 61 Nov 25, 2022
A Gura parser implementation for Dart

Gura Dart parser This repository contains the implementation of a Gura configuration format parser for Dart, written in pure Dart. (Compliant with spe

Zack Campbell 4 Aug 2, 2021
Reference implementation for the Zenon SDK for Dart and Flutter apps compatible

Zenon Dart SDK Reference implementation for the Zenon SDK for Dart and Flutter apps compatible with the Zenon Alphanet - Network of Momentum Phase 0.

null 8 Nov 23, 2022
Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques

Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.

Google 318 Dec 31, 2022
A simple, unofficial AWS Polly client in dart. Supports generating a URL given an input text and voice identifier.

Flutter AWS Polly Plugin This plugin is a Flutter wrapper for AWS Polly which is a cloud service that converts text into lifelike speech. Getting Star

null 4 Aug 20, 2022
Future based HTTP client for the Dart and Flutter

Uno Future based HTTP client for the Dart and Flutter. Uno, inspired by Axios, bringing a simple and robust experience to the crossplatform apps in Fl

Flutterando 56 Dec 16, 2022
A JMAP client library in Dart to make JMAP method calls and process the responses

JMAP Dart client A JMAP client library to make JMAP method calls and process the responses. We most notably use it to write the TMail Flutter applicat

LINAGORA 18 Dec 19, 2022
Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object

Lazy JSON Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object and JSON array. Getting started

Kinnara Digital Studio 0 Oct 27, 2021
Flutter implementation of Clean Architecture, inspired on the guidelines created by Uncle Bob.

clean_framework Flutter implementation of Clean Architecture, inspired on the guidelines created by Uncle Bob. see http://www.amazon.com/dp/0134494164

Acme Software 21 Dec 13, 2022
Flutter's sync log component implementation by DartNative.

Flutter's sync log component implementation by DartNative

DartNative 3 Apr 30, 2022