diff options
-rw-r--r-- | example/example.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/example/example.php b/example/example.php index ca9e68c..8251705 100644 --- a/example/example.php +++ b/example/example.php @@ -2,14 +2,18 @@ require_once 'vendor/autoload.php'; +ini_set('display_errors', 1); +error_reporting(E_ALL); + try { // connecting to jobd $client = new jobd\Client(jobd\Client::MASTER_PORT); // asking master to ask workers responsible for server1 to poll new jobs - $client->poke(['server1']); + $resp = $client->poke(['server1']); + var_dump($resp); } catch (Exception $e) { - die($e->getMessage()); + die("error: ".$e->getMessage()); } // closing connection |