Restart (Stop) Server
Stop or restart the server.
Usage
The Observability facade's stop method may be used to stop the server. By default, it gracefully stops all sessions and connections, but you can force it to stop immediately by setting the force parameter to true.
Docker will automatically restart the server, so you can use this endpoint to reboot the service.
php
use NjoguAmos\Waha\Facades\Observability;
$stop = Observability::stop();php
use NjoguAmos\Waha\Facades\Observability;
$stop = Observability::stop(force: true);Response
The response returned by the stop method is an instance of Saloon\Http\Response.
php
/** @var \Saloon\Http\Response $stop */
$stop->status(); // 200Engines
| WEBJS | WPP | NOWEB | GOWS |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |