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}) |
| type | details | data |
| spin | request a spin | |
| stop | request the reels to stop | |
| clearCookies | remove all stored settings (muted / turbo etc) | |
| stopAutoplay | stop autoplay after current spin | |
| reload | reload entire game after current spin | |
| pause | pause game until unpaused | |
| resume | resume the game after pausing | |
| stakeUp | increase the current selected stake | |
| stakeDown | decrease the current selected stake | |
| turbo | enable or disable turbo | true/false |
| setAudio | mute or unmute all sounds | true/false |
| updateBalance | refresh player balance | |
| showHelp | show 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); |
| type | sent when | data |
| onAppFrameReady | the web page has loaded | |
| cashier | the player has insufficient funds to place a bet | |
| gameDataLoaded | the login call was successfully called | |
| audioToggle | the player toggles the mute state of the game | muted state (true/false) |
| gameReady | load completed and game is ready to play | |
| roundStarted | player started new game round | balance |
| roundEnded | player ended the current game round | |
| balance | player balance was visually updated in-game | balance |