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.