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

Primus implementation for dart.

Primus client for dart

Still in early development, missing some features and might not work for your needs right now.

Usage #

A simple usage example:

import 'package:primus_dart/primus_dart.dart';

main() {
  Primus socket = Primus(socketUrl);

  /*
   * available listeners
   * 'open', 'close', 'data', 'error'
   */
  socket.addListener('open', (data) {

  });

  // send data as string
  socket.send(json.encode({  }));

}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Primus implementation for dart.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

web_socket_channel

More

Packages that depend on primus_dart