My task: Get a function of godot called by Javascript! The Problem: godot's javascript class, doesnt support functions which doesnt return the value immediately
So, this is a step by step of what I've done, I'm using Node.js with a godot application which needs to get data from that node.js server!
I've added to the export project header include for HTML, 2 script tags: one for the ajax, other for my custom file.js which will be alongside the exported godot files:
Create the files.js file:
PS: Remember that files.js must be in the same path as .pck when you export the project
Now we are going to tell godot how to deal with all this shit!
Those logs are from godot, and not javascript nor node.js