Wrap code section in README.md

This commit is contained in:
Stephen Shelton 2020-05-13 10:52:35 -06:00 committed by Jason Rhinelander
parent 1f60abf50e
commit f296b82ba5
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ The connection ID generally has two possible values:
places to get one, such as from the `Message` object passed to a command: see the following
section).
```C++
// Send to a service node, establishing a connection if necessary:
std::string my_sn = ...; // 32-byte pubkey of a known SN
lmq.send(my_sn, "sn.explode", "{ \"seconds\": 30 }");
@ -137,6 +138,7 @@ The connection ID generally has two possible values:
else
std::cout << "Timeout fetching height!";
});
```
## Command invocation