diff options
Diffstat (limited to 'examples/php/greeter_client.php')
-rw-r--r-- | examples/php/greeter_client.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/php/greeter_client.php b/examples/php/greeter_client.php index e5e4c2651e..718ef88c64 100644 --- a/examples/php/greeter_client.php +++ b/examples/php/greeter_client.php @@ -36,7 +36,9 @@ require dirname(__FILE__) . '/vendor/autoload.php'; require dirname(__FILE__) . '/helloworld.php'; function greet($name) { - $client = new helloworld\GreeterClient('localhost:50051', []); + $client = new helloworld\GreeterClient('localhost:50051', [ + 'credentials' => Grpc\ChannelCredentials::createInsecure() + ]); $request = new helloworld\HelloRequest(); $request->setName($name); list($reply, $status) = $client->SayHello($request)->wait(); |