qingfengzxr / gdscript-web3

MIT License
2 stars 3 forks source link

Choose a reasonable method to provide support for JSON-RPC. #13

Open feiyu-he opened 2 weeks ago

feiyu-he commented 2 weeks ago

Hi, @qingfengzxr, have a nice day! In Godot game development, developers commonly use the HTTPRequest node to handle functionalities related to HTTP requests. HTTPRequest operates asynchronously, without offering a synchronous option. This is reasonable because, in game development, we generally prefer asynchronous processing over synchronous to enhance the gaming experience. However, achieving synchronous returns is also possible. As a lower-level interface, Godot's HTTPClient offers this capability. We need to carefully choose whether we require synchronous or asynchronous support for JSON-RPC, and which approach to use (Godot C++ module or direct GDScript usage).

For both methods, I provide sample demos. If you have any questions, you can discuss them under this issue or send me an email.

feiyu-he commented 2 weeks ago

PR aircraft: https://github.com/qingfengzxr/gdscript-web3/pull/14

qingfengzxr commented 2 weeks ago

Indeed, it's needs careful consideration. I will do some research and try it first. Thank you very much~