Skip to content

Commit

Permalink
fix bidirectional streaming PHP example (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedevsergey committed Sep 1, 2021
1 parent e7583c1 commit 20fffd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/en/docs/languages/php/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,13 @@ To write messages from the client:

```php
foreach ($notes as $n) {
$point = new Routeguide\Point();
$point->setLatitude($lat = $n[0]);
$point->setLongitude($long = $n[1]);

$route_note = new Routeguide\RouteNote();
$route_note->setLocation($point);
$route_note->setMessage($message = $n[2]);
$call->write($route_note);
}
$call->writesDone();
Expand Down

0 comments on commit 20fffd5

Please sign in to comment.