primus_dart 0.0.1
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
60
pub points
0%
popularity

Publisher

Unknown

Primus implementation for dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

web_socket_channel

More

Packages that depend on primus_dart