Skip to content
Snippets Groups Projects
Commit 2fdb9638 authored by Lisa Carey's avatar Lisa Carey
Browse files

Style tweaks

parent 8e9a709d
No related branches found
No related tags found
No related merge requests found
...@@ -264,11 +264,12 @@ As you can see, the class `GreetingsImpl` implements the interface ...@@ -264,11 +264,12 @@ As you can see, the class `GreetingsImpl` implements the interface
-`Helloworld.HelloRequest`: the request -`Helloworld.HelloRequest`: the request
-`StreamObserver<Helloworld.HelloReply>`: a response observer, which is -`StreamObserver<Helloworld.HelloReply>`: a response observer, which is
a special interface for the server to call with its response a special interface for the server to call with its response
To return our response to the client and complete the call: To return our response to the client and complete the call:
1. We construct and populate a `HelloReply` response object with our exciting 1. We construct and populate a `HelloReply` response object with our exciting
message, as specified in our interface definition. message, as specified in our interface definition.
2. We call `responseObserver.onValue()` with the `HelloReply` that we want to send back to the client. 2. We call `responseObserver.onValue()` with the `HelloReply` that we want to send back to the client.
3. Finally, we call `responseObserver.onCompleted()` to indicate that we're 3. Finally, we call `responseObserver.onCompleted()` to indicate that we're
finished dealing with this RPC. finished dealing with this RPC.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment