Skip to content

Commit 0550a5b

Browse files
committed
1 parent c80d054 commit 0550a5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

protocols.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const (
2424
P_GARLIC64 = 0x01BE
2525
P_GARLIC32 = 0x01BF
2626
P_P2P_WEBRTC_DIRECT = 0x0114
27+
P_WS = 0x01DD
2728
)
2829

2930
var (
@@ -163,6 +164,11 @@ var (
163164
Code: P_P2P_WEBRTC_DIRECT,
164165
VCode: CodeToVarint(P_P2P_WEBRTC_DIRECT),
165166
}
167+
protoWS = Protocol{
168+
Name: "ws",
169+
Code: P_WS,
170+
VCode: CodeToVarint(P_WS),
171+
}
166172
)
167173

168174
func init() {
@@ -187,6 +193,7 @@ func init() {
187193
protoP2P,
188194
protoUNIX,
189195
protoP2P_WEBRTC_DIRECT,
196+
protoWS,
190197
} {
191198
if err := AddProtocol(p); err != nil {
192199
panic(err)

0 commit comments

Comments
 (0)