Initialization

Initialization Game Client

To use the SDK, create a new instance of GameClient on your script. Example:

const client = new GameClient(gameId, apiKey, parentWindow?, options?);

?: optional

Type Definition:
    gameId: string
    apiKey: string
    parentWindow?: Window
    options?: {
        disableKeyboardEvents?: boolean. Default: true
        dev?: boolean. Default: true
    }

Last updated