qrpc_client 0.0.7 copy "qrpc_client: ^0.0.7" to clipboard
qrpc_client: ^0.0.7 copied to clipboard

qrpc client for dart!

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

SubFunc sub = (QrpcConnection conn, QrpcFrame frame) {
  print('pushed ${frame.payload}');
};
QrpcConnectionConfig conf = new QrpcConnectionConfig(dialTimeout: new Duration(seconds: 1));
var awesome = new QrpcConnection(addr:"localhost", port:8888, conf:conf, sub:sub);

var loginReq = {"app":"app", "device":"mac", "token":"cs1"};
var payloadStr = json.encode(loginReq);
Uint8List payload = utf8.encode(payloadStr);
var resp = await awesome.request(0, 0, payload);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

qrpc client for dart!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on qrpc_client