Beanstalk ⋅ Miscellaneous
Get System Stats
To see what stats are available for the system, checkout the System class page.
$beanstalk = new Amp\Beanstalk\BeanstalkClient("tcp://127.0.0.1:11300");
$stats = yield $beanstalk->getSystemStats();
Close the Connection
To manually close the connection to the server.
$beanstalk = new Amp\Beanstalk\BeanstalkClient("tcp://127.0.0.1:11300");
$beanstalk->quit();