do2webSocket

A library for Dart developers.

Usage

A simple usage example:

import 'dart:io';
import 'package:do2websocket/do2wsserver.dart';

class WsController implements Do2WsController{

  String name = 'test';

  void router(Do2WebSocket ws, int idWs,String action, Map data){
    ws.send(idWs, ws.createMessage('test','test',data));
  }

}

main() {
  Do2WsServer webSocket;
  HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 4040).then((server)=>webSocket = new Do2WsServer(server));
  webSocket.add(new WsController());
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

do2wsclient

The do2websocket library.

do2wsserver

The do2websocket library.