Find a jsonrpc use example in gdscript or c++ modules

Godot Version

4.1-stable

Question

I’m a bit confused about the use of jsonrpc in godot. It provides methods such as make_request, but it doesn’t seem to provide a method for requesting a url. Can anyone who knows how to use it give me an example of how to use it? Both gdscript and c++ modules are fine.

It’s just an utility class that generates JSON-RPC packages inside a Dictionary. What you do with that Dictionary is up to you. You’ll need to create the connection and send/process the packages yourself.

Here’s how it’s used by the gdscript lsp protocol godot/modules/gdscript/language_server/gdscript_language_protocol.cpp at master · godotengine/godot · GitHub for example.

1 Like

I see, thanks for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.