Exposing UE4 hooks to JS / browser

Hi, I’m wondering how to control in-game events via JavaScript in the browser on a HTML5 build.

A very simple example would be a React component like <button onClick={this.toggleLight}> that would toggle a light on / off in UE.

Is this easily doable? If so, is there a guide that goes into more detail?

Get Varest and use JSON, It’s not webhooks but it will allow you to send data to a server and get callbacks. Your onclick would be an ‘ingame’ click ie pressing a button in game, but the response would be from your web page.

Thank you I will look into it!