MichaelMarner / socketcluster_client

SocketCluster.io Client for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocketCluster Dart Client

SocketCluster Client is the client-side component of SocketCluster.

Example Usage

  var socket = await Socket.connect('ws://localhost:8000/socketcluster/',
      listener: new MyListener());
      
  socket.on('rand', (name, data, ack) {
    print('got message $data from event $name');
    ack(name, 'No error', 'Hi there buddy');
  });

Note

This is a straight and dirty port from the C# client.

Large changes will be made to clean this up and make it more 'Dartified'

For instance, BasicListener will be removed in favor of Stream

About

SocketCluster.io Client for Dart

License:Other


Languages

Language:Dart 93.3%Language:Shell 6.7%