0 votes

Is there a way to do HTTP requests using HTTP Client without blocking the main thread in the HTML5 webassembly export? Bearing in mind that threading is not possible in the HTML5 export. Which is how I would usually send HTTP requests without blocking the main tread. Somebody once told me that it is possible to use _process, instead of a while loop, to avoid blocking of the main thread. However, I am not sure if this is possible as I imagine that HTTP client in the web export requires a connection to permit with the Javascript.

If anybody has any ideas on this/has done this before any help would be appreciated.

in Engine by (293 points)

Did you get this to work?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.