diff --git a/client b/client index 201221a..a8f22d7 100644 --- a/client +++ b/client @@ -1,10 +1,14 @@ 4) { @@ -13,7 +17,7 @@ } // Connect to the socket server - $client = new Client($argv[1], ConType::AF_UNIX); + $client = new Client($argv[1], null, Connection::AF_UNIX); // Get endpoint, method, and optional payload $args = $argv; diff --git a/src/Reflect/Client.php b/src/Reflect/Client.php index cc120d9..41c835f 100644 --- a/src/Reflect/Client.php +++ b/src/Reflect/Client.php @@ -120,7 +120,7 @@ // Call endpoint over UNIX socket if ($this->_con === Connection::AF_UNIX) { - return json_decode($this->_socket_txn(json_encode([ + return json_decode($this->socket_txn(json_encode([ $endpoint, $method->value, $payload