docs: add LIST_PEERS to control spec
This commit is contained in:
parent
b34bd3c3d1
commit
b6c8f6576f
|
@ -121,6 +121,26 @@ Response{
|
|||
}
|
||||
```
|
||||
|
||||
#### `LIST_PEERS`
|
||||
Clients can issue a `LIST_PEERS` request to get a list of IDs of peers the node is connected to.
|
||||
|
||||
**Client**
|
||||
```
|
||||
Request{
|
||||
Type: LIST_PEERS
|
||||
}
|
||||
```
|
||||
|
||||
**Daemon**
|
||||
*May return an error*
|
||||
|
||||
```
|
||||
Response{
|
||||
Type: OK,
|
||||
Peers: [<PeerInfo>, ...]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### `StreamOpen`
|
||||
|
||||
|
|
Loading…
Reference in New Issue