JSONRPC

Inherits: Object

Methods

Dictionary make_notification ( String method, Variant params )
Dictionary make_request ( String method, Variant params, Variant id )
Dictionary make_response ( Variant result, Variant id )
Dictionary make_response_error ( int code, String message, Variant id=null ) const
Variant process_action ( Variant action, bool recurse=false )
String process_string ( String action )
void set_scope ( String scope, Object target )

Enumerations

enum ErrorCode:

  • PARSE_ERROR = -32700
  • INVALID_REQUEST = -32600
  • METHOD_NOT_FOUND = -32601
  • INVALID_PARAMS = -32602
  • INTERNAL_ERROR = -32603

Method Descriptions

Dictionary make_notification ( String method, Variant params )

Dictionary make_request ( String method, Variant params, Variant id )

Dictionary make_response ( Variant result, Variant id )

Dictionary make_response_error ( int code, String message, Variant id=null ) const

Variant process_action ( Variant action, bool recurse=false )

String process_string ( String action )

void set_scope ( String scope, Object target )

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_jsonrpc.html