Skip to content

Appendix A - Events

Operator -> Game (via postmessage to game on webpage)

In order to interact with the game, you can send a postmessage to the window of the game. For example, in the browser console type the following to enable turbo:

window.postMessage({type: "turbo", data: true})
typedetailsdata
spinrequest a spin
stoprequest the reels to stop
clearCookiesremove all stored settings (muted / turbo etc)
stopAutoplaystop autoplay after current spin
reloadreload entire game after current spin
pausepause game until unpaused
resumeresume the game after pausing
stakeUpincrease the current selected stake
stakeDowndecrease the current selected stake
turboenable or disable turbotrue/false
setAudiomute or unmute all soundstrue/false
updateBalancerefresh player balance
showHelpshow the rules dialog

Game -> Operator (via postmessage from game on webpage)

In order to see the messages that are being sent from the game, just type this into the browser console and press enter:

window.onmessage = message => console.log(message.data);
typesent whendata
onAppFrameReadythe web page has loaded
cashierthe player has insufficient funds to place a bet
gameDataLoadedthe login call was successfully called
audioTogglethe player toggles the mute state of the gamemuted state (true/false)
gameReadyload completed and game is ready to play
roundStartedplayer started new game roundbalance
roundEndedplayer ended the current game round
balanceplayer balance was visually updated in-gamebalance