Skip to main content

Sending Events

The Game Client MUST notify Kalamba SDK about in-game events by using the following methods:

Autoplay

The Game Client MUST notify Kalamba SDK that the autoplay state has changed.

sdk.send('autoplay', autoplayPayload)

Balance

The Game Client MUST notify Kalamba SDK that the in-game balance has changed.

sdk.send('balance', balancePayload)

Bet

The Game Client MUST notify Kalamba SDK that the in-game bet has changed.

sdk.send('bet', betPayload)

Cashier

The Game Client MUST notify Kalamba SDK that the player wishes to use cashier (deposit) functionality.

sdk.send('cashier', cashierPayload)

Close

The Game Client MUST notify Kalamba SDK that the player wishes to close the game.

sdk.send('close')

Error

The Game Client MUST notify Kalamba SDK that the game has encountered some error.

sdk.send('error', errorPayload)

Fullscreen

The Game Client MUST notify Kalamba SDK that the player wishes to trigger fullscreen mode.

sdk.send('fullscreen', fullscreenPayload)

History

The Game Client MUST notify Kalamba SDK that the player wishes to see game history or MUST display in-game history fetched by sdk history module.

sdk.send('history', historyPayload)

Game Loading

The Game Client MUST notify Kalamba SDK that the game has started loading.

// SendLoadStartPayload
sdk.send('loadStart', loadStartPayload)

The Game Client MAY notify Kalamba SDK about game loading progress.

sdk.send('loadProgress', loadProgressPayload)

The Game Client MUST notify Kalamba SDK that the game has finished loading.

sdk.send('loadEnd', loadEndPayload)

Gameplay Cycle

The Game Client MUST notify Kalamba SDK whether the game is ready and can accept play requests.

sdk.send('playReady', playReadyPayload)

The Game Client MUST notify Kalamba SDK that the play animations started playing.

sdk.send('playStart', playStartPayload)

The Game Client MUST notify Kalamba SDK that the play animations stopped playing.

sdk.send('playEnd', playEndPayload)

The Game Client MUST notify Kalamba SDK that the paid game cycle has been requested.

sdk.send('playCycleStart', playCycleStartPayload)

The Game Client MUST notify Kalamba SDK that full game cycle has completed (including all free spins, gambles, selections) and the final balance was shown.

sdk.send('playCycleEnd', playCycleEndPayload)

Translations

The Game Client MAY notify Kalamba SDK about custom translations.

const translationsPayload = {
generic_error: 'Something went wrong',
}

sdk.send('translations', translationsPayload)

Settings

  • The Game Client MUST notify Kalamba SDK about initial in-game settings.
  • The Game Client MUST notify Kalamba SDK that the player has changed in-game settings.
sdk.send('settings', settingsPayload)

Telemetry

The Game Client MAY notify Kalamba SDK about clicks

sdk.send('telemetry.click', telemetryClickPayload)

The Game Client MAY notify Kalamba SDK that screen orientation has changed

sdk.send('telemetry.orientationChange')