Type Alias InitOptions

InitOptions: {
    gameId?: string;
    onError?: ((err: PixllandError) => void);
}

Options accepted by init(). All fields optional — the SDK falls back to URL params + sensible defaults when omitted.

Type declaration

  • OptionalgameId?: string

    Override the game ID the shell would otherwise infer from URL params.

  • OptionalonError?: ((err: PixllandError) => void)

    Called whenever the SDK emits a recoverable error.