Skip to content
Snippets Groups Projects
Commit 5c350677 authored by LisaFC's avatar LisaFC
Browse files

Merge pull request #164 from Kangmo/patch-1

Fixed incorrect description on client side streaming.
parents 3f1a2463 1ecc0383
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ Then you define `rpc` methods inside your service definition, specifying their r ...@@ -60,7 +60,7 @@ Then you define `rpc` methods inside your service definition, specifying their r
rpc ListFeatures(Rectangle) returns (stream Feature) {} rpc ListFeatures(Rectangle) returns (stream Feature) {}
``` ```
- A *client-side streaming RPC* where the client writes a sequence of messages and sends them to the server, again using a provided stream. Once the client has finished writing the messages, it waits for the server to read them all and return its response. You specify a server-side streaming method by placing the `stream` keyword before the *request* type. - A *client-side streaming RPC* where the client writes a sequence of messages and sends them to the server, again using a provided stream. Once the client has finished writing the messages, it waits for the server to read them all and return its response. You specify a client-side streaming method by placing the `stream` keyword before the *request* type.
``` ```
// Accepts a stream of Points on a route being traversed, returning a // Accepts a stream of Points on a route being traversed, returning a
// RouteSummary when traversal is completed. // RouteSummary when traversal is completed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment