dartpusherclient 0.0.1 copy "dartpusherclient: ^0.0.1" to clipboard
dartpusherclient: ^0.0.1 copied to clipboard

outdated

A simple dart package to handle pusher client side.

dartpusherclient #

A simple dart package to handle pusher client side.

Getting Started #

pubspec.yaml:

dependencies:
    dart_pusher_client:
      git:
        url: https://gitlab.com/hareland/dart-pusher-client.git
pub get
import 'dartpusherclient.dart';

void main() {
  Pusher p = Pusher('APP_KEY', cluster: 'eu');

  p.connect().then((Pusher pu) {
    pu.subscribe('my-channel').listen('test', (PusherEvent e) {
      print("Received: ${e.event} in ${e.channel} with data ${e.data}");
    }).listen('away', (PusherEvent e) {
      print("Received: ${e.event} in ${e.channel} with data ${e.data}");
    });
  });
}

Contributions #

Contributions are most welcome.

Roadmap: #

Feature Since
Channels 0.0.1
Private Channels ?
Presence Channels ?
3
likes
10
points
14
downloads

Publisher

verified publisherhareland.eu

Weekly Downloads

A simple dart package to handle pusher client side.

Repository (GitLab)
View/report issues

License

unknown (license)

More

Packages that depend on dartpusherclient