Skip to content

Commit bf111ad

Browse files
committed
doc/schemas: add websocket to type in doc/schemas/notification/connect.json
This is done by tests/test_connection.py::test_websocket: ``` { "jsonrpc": "2.0", "method": "connect", "params": { "connect": { "id": "031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f", "direction": "in", "address": { "type": "websocket", "subtype": "ipv4", "address": "127.0.0.1", "port": 59412 } } } } ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent e1709e6 commit bf111ad

File tree

6 files changed

+26
-18
lines changed

6 files changed

+26
-18
lines changed

.msggen.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@
439439
"ipv6": 2,
440440
"local socket": 0,
441441
"torv2": 3,
442-
"torv3": 4
442+
"torv3": 4,
443+
"websocket": 5
443444
},
444445
"PeerConnectDirection": {
445446
"in": 0,

cln-grpc/proto/node.proto

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-rpc/src/notifications.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ pub enum PeerConnectAddressType {
8585
TORV2 = 3,
8686
#[serde(rename = "torv3")]
8787
TORV3 = 4,
88+
#[serde(rename = "websocket")]
89+
WEBSOCKET = 5,
8890
}
8991

9092
impl TryFrom<i32> for PeerConnectAddressType {
@@ -96,6 +98,7 @@ impl TryFrom<i32> for PeerConnectAddressType {
9698
2 => Ok(PeerConnectAddressType::IPV6),
9799
3 => Ok(PeerConnectAddressType::TORV2),
98100
4 => Ok(PeerConnectAddressType::TORV3),
101+
5 => Ok(PeerConnectAddressType::WEBSOCKET),
99102
o => Err(anyhow::anyhow!("Unknown variant {} for enum PeerConnectAddressType", o)),
100103
}
101104
}
@@ -109,6 +112,7 @@ impl ToString for PeerConnectAddressType {
109112
PeerConnectAddressType::IPV6 => "IPV6",
110113
PeerConnectAddressType::TORV2 => "TORV2",
111114
PeerConnectAddressType::TORV3 => "TORV3",
115+
PeerConnectAddressType::WEBSOCKET => "WEBSOCKET",
112116
}.to_string()
113117
}
114118
}

contrib/msggen/msggen/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35834,7 +35834,8 @@
3583435834
"ipv4",
3583535835
"ipv6",
3583635836
"torv2",
35837-
"torv3"
35837+
"torv3",
35838+
"websocket"
3583835839
],
3583935840
"description": [
3584035841
"Type of connection (*torv2*/*torv3* only if **direction** is *out*)"

contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/schemas/notification/connect.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"ipv4",
5454
"ipv6",
5555
"torv2",
56-
"torv3"
56+
"torv3",
57+
"websocket"
5758
],
5859
"description": [
5960
"Type of connection (*torv2*/*torv3* only if **direction** is *out*)"

0 commit comments

Comments
 (0)