:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the JSONRPC.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_JSONRPC: JSONRPC ======= **Inherits:** :ref:`Object` Methods ------- +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`make_notification` **(** :ref:`String` method, :ref:`Variant` params **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`make_request` **(** :ref:`String` method, :ref:`Variant` params, :ref:`Variant` id **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`make_response` **(** :ref:`Variant` result, :ref:`Variant` id **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`make_response_error` **(** :ref:`int` code, :ref:`String` message, :ref:`Variant` id=null **)** |const| | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`process_action` **(** :ref:`Variant` action, :ref:`bool` recurse=false **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`process_string` **(** :ref:`String` action **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_scope` **(** :ref:`String` scope, :ref:`Object` target **)** | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Enumerations ------------ .. _enum_JSONRPC_ErrorCode: .. _class_JSONRPC_constant_PARSE_ERROR: .. _class_JSONRPC_constant_INVALID_REQUEST: .. _class_JSONRPC_constant_METHOD_NOT_FOUND: .. _class_JSONRPC_constant_INVALID_PARAMS: .. _class_JSONRPC_constant_INTERNAL_ERROR: enum **ErrorCode**: - **PARSE_ERROR** = **-32700** - **INVALID_REQUEST** = **-32600** - **METHOD_NOT_FOUND** = **-32601** - **INVALID_PARAMS** = **-32602** - **INTERNAL_ERROR** = **-32603** Method Descriptions ------------------- .. _class_JSONRPC_method_make_notification: - :ref:`Dictionary` **make_notification** **(** :ref:`String` method, :ref:`Variant` params **)** ---- .. _class_JSONRPC_method_make_request: - :ref:`Dictionary` **make_request** **(** :ref:`String` method, :ref:`Variant` params, :ref:`Variant` id **)** ---- .. _class_JSONRPC_method_make_response: - :ref:`Dictionary` **make_response** **(** :ref:`Variant` result, :ref:`Variant` id **)** ---- .. _class_JSONRPC_method_make_response_error: - :ref:`Dictionary` **make_response_error** **(** :ref:`int` code, :ref:`String` message, :ref:`Variant` id=null **)** |const| ---- .. _class_JSONRPC_method_process_action: - :ref:`Variant` **process_action** **(** :ref:`Variant` action, :ref:`bool` recurse=false **)** ---- .. _class_JSONRPC_method_process_string: - :ref:`String` **process_string** **(** :ref:`String` action **)** ---- .. _class_JSONRPC_method_set_scope: - void **set_scope** **(** :ref:`String` scope, :ref:`Object` target **)** .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`