GithubHelp home page GithubHelp logo

adaojunior / pusher Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 12.0 75 KB

The Dart library for interacting with the Pusher HTTP API.

Home Page: https://pub.dartlang.org/packages/pusher

License: MIT License

Dart 97.74% Shell 2.26%

pusher's People

Contributors

adaojunior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pusher's Issues

error on android when build

/Users/rlwt/Downloads/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pusher-1.0.1/android/src/main/java/com/ninjasolutions/pusher/PusherPlugin.java:382: error: cannot find symbol
channel.trigger(eventName, "{}");
^
symbol: method trigger(String,String)
location: variable channel of type Channel
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_pusher:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 40s
Exception: Gradle task assembleDebug failed with exit code 1

get, trigger, should throw exceptions when something goes wrong

part of pusher;

class PusherException implements Exception {

  /// Error message
  final String message;

  PusherException(this.message);

  /// Error message
  String toString() => message;
}

class RequestException extends PusherException {

  /// Request URL
  final Uri url;

  /// Request status code
  final int statusCode;

  /// Response body, if received
  final String body;

  RequestException(String message,this.url, this.statusCode,[this.body]) : super(message);

}

please rename your user class

Hi,

having a class User in the pusher package clashes very often with app specific User classes when not prefixing on import. How about a PusherUser as name for that?

How would you do this implementation? (authorization Bearer)

This is the javascript example:


const pusher = new Pusher('<pusher api key>', {
      cluster: 'cluster',
      authEndpoint: 'https://test-api.com/test-endpoint',
      auth: {
        headers: {
          'authorization': `Bearer ${token}`
        }
      }
    });

    const channel = pusher.subscribe(`test_channel`);

    channel.bind('news', function(data) {
      console.log(data);
    });

How would I do this auth and binding and subscription with this library in flutter, please?

How to set cluster?

I'm trying to use this package in a Flutter test app but I'm getting an 'Unknow auth_key' response - after some googling I found out this is because of the cluster setting which seems unsupported in this library...

Any known way to fix this?

Dart 2 incompatible

Are you still willing to maintain this project? I'm interested in using it and possibly helping work on the code.

How much work would it require to migrate this to Dart 2?

handshake error when connecting to https, works fine with http

HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:354))

is there any configuration that I need to do on client side ?

can we have a badCertificateCallback like in HttpClient ?

static HttpClient client = new HttpClient()
..badCertificateCallback = (_certificateCheck);

static bool _certificateCheck(X509Certificate cert, String host, int port) =>
host == 'local.domain.ext';

Is there support for chatkit?

Hi.

I want to use ChatKit from pusher.com in a flutter app and I am not sure where to start from. From what I can see, this package has support only for channels. Is that right?

Can you point me in the right direction? Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.