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

殷梦龙 aa27211ab1 更新 'README.md' 3 years ago
lib f03c755bb4 壳web配置同步 3 years ago
test a41dfd5be7 project initialization 3 years ago
.gitignore a41dfd5be7 project initialization 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.lock a41dfd5be7 project initialization 3 years ago
pubspec.yaml c748221e04 更新 'pubspec.yaml' 3 years 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);
}