杏聆荟Flutter客户端 JSON-RPC Client库
guanxinyi 45357f676f 1、更新rpc | 4 mesiacov pred | |
---|---|---|
.vs | 9 mesiacov pred | |
.vscode | 9 mesiacov pred | |
lib | 4 mesiacov pred | |
test | 3 rokov pred | |
.gitignore | 3 rokov pred | |
.metadata | 3 rokov pred | |
CHANGELOG.md | 3 rokov pred | |
LICENSE | 3 rokov pred | |
README.md | 3 rokov pred | |
pubspec.yaml | 9 mesiacov pred |
A JSON-RPC client package project for Flyinsono application.
// 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);
}