Skip to content

Session Config Data DTO Reference

The NjoguAmos\Waha\Dto\SessionConfigData contains session configuration.

proxySessionProxyData or null

Proxy server configuration.

php
$session->config->proxy?->server; // "http://proxy.example.com:8080"

webhooksarray

An array of SessionWebhookData objects.

php
foreach ($session->config->webhooks as $webhook) {
    $webhook->url; // "https://example.com/webhook"
}

debugbool

Whether debug mode is enabled.

php
$session->config->debug; // false

nowebSessionConfigNowebData or null

Configuration specifically for the NOWEB engine.

webjsSessionConfigWebjsData or null

Configuration specifically for the WEBJS engine.

clientSessionConfigClientData or null

Configuration for the WhatsApp client (device and browser name).

metadataarray

An associative array of additional metadata information.

php
$session->config->metadata['user.id']; // "123"

ignoreSessionConfigIgnoreData or null

Configuration for ignoring certain types of events.

gowsSessionConfigGowsData or null

Configuration specifically for the GOWS engine.

Released under the MIT License.