杏聆荟Flutter客户端 JSON-RPC Client库

guanxinyi 2a45e13b8d 1、rpc更新 4 сар өмнө
.vs 0bfd41c09d 1、更新jsonrpc 9 сар өмнө
.vscode ecf613e0d1 移除无用文件 9 сар өмнө
lib 2a45e13b8d 1、rpc更新 4 сар өмнө
test a41dfd5be7 project initialization 3 жил өмнө
.gitignore fc87f9a26b repaire right codes 3 жил өмнө
.metadata a41dfd5be7 project initialization 3 жил өмнө
CHANGELOG.md a41dfd5be7 project initialization 3 жил өмнө
LICENSE a41dfd5be7 project initialization 3 жил өмнө
README.md aa27211ab1 更新 'README.md' 3 жил өмнө
pubspec.yaml 49e11cb8fc 修复合并后确实的加密字段 9 сар өмнө

README.md

fis_jsonrpc

A JSON-RPC client package project for Flyinsono application.

Usage

// Create a proxy instance
final rpc = JsonRpcProxy();

// Fetch a api
try {
    final String result = await rpc.config.getConfigAsync("service", "section", "settingNode", "defaultValue");
    print(result);
} on JsonRpcException catch (e) {
    print("Fetch fail. code: ${e.code}, msg: ${e.message}");
} catch (e) {
    logger.e("Fetch error.", e);
}