Yes, games can be configured per brand to send information from the game iframe using JavaScript postMessage events. To enable this feature, please contact our Technical Support team.
Once enabled, the game may send messages in the following format:
{"wpgaction":"ready"}— The game has loaded and is ready to start.{"wpgaction":"balance","param":{"balance":8891500}}— The game has received an updated balance.{"wpgaction":"gameSpinStart"}— A game round has started.{"wpgaction":"gameRoundEnd"}— A game round has ended.
You can listen for these events in the parent application using a standard message event listener:
window.addEventListener("message", function(event) { console.log(JSON.stringify(event.data)); });
Comments
0 comments
Please sign in to leave a comment.