Skip to content

Unable to use Callable with connect in HTTPRequest in GodotJS #39

Answered by ialex32x
G159w asked this question in Q&A
Discussion options

You must be logged in to vote

I tried similar codes in the latest version without this error reported. It should has been fixed in the commits after the exe was built by Github Actions. I'll generate another build again to check whether it's fixed.

const req = new HTTPRequest();
this.add_child(req);
// 1:
// req.request_completed.connect(new Callable(this, this.dummy_call.name).bind(123));
// 2:
// req.connect("request_completed", new Callable(this, this.dummy_call.name).bind(123));
// 3:
req.request_completed.connect(Callable.create(this, this.dummy_call).bind(123));
req.request(url);

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@G159w
Comment options

@ialex32x
Comment options

@ialex32x
Comment options

@G159w
Comment options

Answer selected by G159w
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants