跳到主要内容

JSONRPC

继承

Object

简要描述

描述

方法

返回值类型方法名称
Dictionarymake_notification(method: String, params: Variant)
Dictionarymake_request(method: String, params: Variant, id: Variant)
Dictionarymake_response(result: Variant, id: Variant)
Dictionarymake_response_error(code: int, message: String, id: Variant = null) const
Variantprocess_action(action: Variant, recurse: bool = false)
Stringprocess_string(action: String)
voidset_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)