Appearance
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}) |
| type | details | data |
| spin | request a spin | |
| stop | request the reels to stop | |
| spinStop | request the current spin 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 |
| mute | mute all sounds | |
| unmute | unmute all sounds | |
| toggleMute | toggle the mute state | |
| updateBalance | refresh player balance | |
| showHelp | show 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); |
| type | sent when | data |
| onAppFrameReady | the web page loads | |
| cashier | the player has insufficient funds to place a bet | |
| gameDataLoaded | the login call succeeds | |
| audioToggle | the player toggles the mute state of the game | muted state (true/false) |
| gameReady | the game finishes loading. The game is ready to play. | |
| roundStarted | the player starts a new gameround | balance |
| roundEnded | the player ends the current gameround | |
| balance | the game updates the displayed player balance | balance |