Skip to content

Appendix A - Events

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

To interact with the game, send a postmessage to the window of the game. For example, type this in the browser console to enable turbo:

window.postMessage({type: "turbo", data: true})
typedetailsdata
spinrequest a spin
stoprequest the reels to stop
spinStoprequest the current spin 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
mutemute all sounds
unmuteunmute all sounds
toggleMutetoggle the mute state
updateBalancerefresh player balance
showHelpshow the rules dialog

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

To see the messages that the game sends, type this in the browser console and press enter:

window.onmessage = message => console.log(message.data);
typesent whendata
onAppFrameReadythe web page loads
cashierthe player has insufficient funds to place a bet
gameDataLoadedthe login call succeeds
audioTogglethe player toggles the mute state of the gamemuted state (true/false)
gameReadythe game finishes loading. The game is ready to play.
roundStartedthe player starts a new gameroundbalance
roundEndedthe player ends the current gameround
balancethe game updates the displayed player balancebalance