| 1 |
# RPC Client Example |
| 2 |
|
| 3 |
This project contains an executable `rpc_client` which connects to the RPC |
| 4 |
server started when Dune is run in watch mode. To use this program, start Dune |
| 5 |
in watch mode: |
| 6 |
|
| 7 |
``` |
| 8 |
$ dune build --watch |
| 9 |
``` |
| 10 |
|
| 11 |
Then run `rpc_client` from the same directory as `dune` was run from. The |
| 12 |
`rpc_client` program will connect to the server (`dune build --watch` starts an |
| 13 |
RPC server) and perform several RPC calls to it before instructing the server |
| 14 |
(over RPC) to shutdown. |