Call C++ Method from Webpage via JavaScript


Is there a plugin or a general way (not emscripten) to invoke a C++ UFUNCTION() in Unreal. I would like to send some events from the page (e.g button click) into unreal html5 build that is embeded into page. Has anyone tried this, can point me in the right direction?


And I’d like to know how to interface with other events too, for instance when a level is completed, game over, obtain scores from the webpage and forward them to my server, etc.

Has this already been done?