George Barnett 91ab843c48 Regenerate 4 vuotta sitten
..
Client 621a0df8d8 Add missing calls to 'close()' in examples (#965) 5 vuotta sitten
Model 91ab843c48 Regenerate 4 vuotta sitten
Server d9e1a6e532 Codegen for server interceptors (#1030) 5 vuotta sitten
README.md 054d31085b Add an interceptors tutorial (#1061) 5 vuotta sitten

README.md

Hello World, a quick-start gRPC Example

This directory contains a 'Hello World' gRPC example, a single service with just one RPC for saying hello. The quick-start tutorial which accompanies this example lives in docs/ directory of this project.

Running

Server

To start the server run:

swift run HelloWorldServer

Note the port the server is listening on.

Client

To send a message to the server run the following, replacing <PORT> with the port the server is listening on:

swift run HelloWorldClient <PORT>

You may also greet a particular person (or dog). For example, to greet PanCakes on a server listening on port 1234 run:

swift run HelloWorldClient 1234 "PanCakes"