Skip to content

Configuration

Logging

Set the static log property to true to enable basic logging to the console.

typescript
OperatorInterface.log = true;

From version 1.4.5, the OperatorInterface enables this logging by default.

Setup Parameters

The setup method accepts the following parameters:

ParameterTypeDescription
operatorProtocolOperatorProtocolThe operator protocol for communication (for example, OperatorProtocol.GAMESGLOBAL).
gameCodestringThe identifier for the game.
currencyCodestringThe 3-letter ISO currency code (for example, 'EUR').
languageCodestringThe 2-letter ISO language code (for example, 'en').
playerIDstringThe unique identifier for the player.
modestringThe game mode (for example, "REAL", "DEMO").
lobbyURLstringThe URL to redirect to when exiting.
isMobileboolean(Optional) States whether the game runs on a mobile device. The default value is false.

See setup in the API reference for the full signature.