notification: disconnect with json key disconnect

Changelog-Added: JSON-RPC: `connect` and `disconnect` notifications now wrap `id` field in a `connect`/`disconnect` object (consistency with other notifications)
This commit is contained in:
Shahana Farooqui
2023-06-27 19:26:27 -07:00
committed by Rusty Russell
parent e247d16536
commit 79092c16b1
3 changed files with 18 additions and 3 deletions

View File

@@ -103,7 +103,9 @@ A notification for topic `disconnect` is sent every time a connection to a peer
```json
{
"id": "02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432"
"disconnect": {
"id": "02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432"
}
}
```