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

guanxinyi 45357f676f 1、更新rpc 4 months ago
.vs 0bfd41c09d 1、更新jsonrpc 9 months ago
.vscode ecf613e0d1 移除无用文件 9 months ago
lib 45357f676f 1、更新rpc 4 months ago
test a41dfd5be7 project initialization 3 years ago
.gitignore fc87f9a26b repaire right codes 3 years ago
.metadata a41dfd5be7 project initialization 3 years ago
CHANGELOG.md a41dfd5be7 project initialization 3 years ago
LICENSE a41dfd5be7 project initialization 3 years ago
README.md aa27211ab1 更新 'README.md' 3 years ago
pubspec.yaml 49e11cb8fc 修复合并后确实的加密字段 9 months ago

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);
}