JSONRPC¶
继承¶
Object
简要描述¶
描述¶
方法¶
返回值类型 | 方法名称 |
---|---|
Dictionary | make_notification(method: String, params: Variant) |
Dictionary | make_request(method: String, params: Variant, id: Variant) |
Dictionary | make_response(result: Variant, id: Variant) |
Dictionary | make_response_error(code: int, message: String, id: Variant = null) const |
Variant | process_action(action: Variant, recurse: bool = false) |
String | process_string(action: String) |
void | set_scope(scope: String, target: Object) |
##枚举 | |
enum ErrorCode: | |
- PARSE_ERROR = -32700 |
-
INVALID_REQUEST = -32600
-
METHOD_NOT_FOUND = -32601
-
INVALID_PARAMS = -32602
-
INTERNAL_ERROR = -32603
方法说明¶
- make_notification make_notification(method: String, params: Variant)
- make_request make_request(method: String, params: Variant, id: Variant)
- make_response make_response(result: Variant, id: Variant)
- make_response_error make_response_error(code: int, message: String, id: Variant = null) const
- process_action process_action(action: Variant, recurse: bool = false)
- process_string process_string(action: String)
- set_scope set_scope(scope: String, target: Object)