Skip to content

Session Create Data DTO Reference

The NjoguAmos\Waha\Dto\SessionCreateData represents information for creating a new session.

php
use NjoguAmos\Waha\Dto\SessionCreateData;
use NjoguAmos\Waha\Dto\SessionConfigData;

$sessionCreateData = new SessionCreateData(
    name: 'default',
    start: true,
    config: new SessionConfigData(
        debug: true
    )
);

namestring

The session name.

php
$sessionCreateData->name; // "default"

startbool

Whether to start the session immediately after creation. Defaults to true.

php
$sessionCreateData->start; // true

configSessionConfigData or null

Session configuration including proxy and webhooks.

php
$sessionCreateData->config?->debug; // true

appsarray or null

Additional applications to load with the session.

php
$sessionCreateData->apps; // null

Released under the MIT License.