aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib/php/distribtest.php
blob: 318c6f9cf08f2dc5f4af681aa1106f66bb00bb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

$channel = new Grpc\Channel('localhost:1000', [
    'credentials' => Grpc\ChannelCredentials::createInsecure()
]);

$deadline = Grpc\Timeval::infFuture();
$call = new Grpc\Call($channel,
                      'dummy_method',
                      $deadline);

$call->cancel();
$channel->close();