mirror of https://github.com/oxen-io/oxen-mq.git
Wrap code section in README.md
This commit is contained in:
parent
1f60abf50e
commit
f296b82ba5
|
@ -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
|
places to get one, such as from the `Message` object passed to a command: see the following
|
||||||
section).
|
section).
|
||||||
|
|
||||||
|
```C++
|
||||||
// Send to a service node, establishing a connection if necessary:
|
// Send to a service node, establishing a connection if necessary:
|
||||||
std::string my_sn = ...; // 32-byte pubkey of a known SN
|
std::string my_sn = ...; // 32-byte pubkey of a known SN
|
||||||
lmq.send(my_sn, "sn.explode", "{ \"seconds\": 30 }");
|
lmq.send(my_sn, "sn.explode", "{ \"seconds\": 30 }");
|
||||||
|
@ -137,6 +138,7 @@ The connection ID generally has two possible values:
|
||||||
else
|
else
|
||||||
std::cout << "Timeout fetching height!";
|
std::cout << "Timeout fetching height!";
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## Command invocation
|
## Command invocation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue