I want to call a godot script function from an html button. It should be possible by using JavaScript global variables and constant polling(eg. in _process) but polling seems like a bad solution to me.
Is there some way already provided by Godot or atleast a way to make this closer to the observer pattern?