We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c80d054 commit 0550a5bCopy full SHA for 0550a5b
protocols.go
@@ -24,6 +24,7 @@ const (
24
P_GARLIC64 = 0x01BE
25
P_GARLIC32 = 0x01BF
26
P_P2P_WEBRTC_DIRECT = 0x0114
27
+ P_WS = 0x01DD
28
)
29
30
var (
@@ -163,6 +164,11 @@ var (
163
164
Code: P_P2P_WEBRTC_DIRECT,
165
VCode: CodeToVarint(P_P2P_WEBRTC_DIRECT),
166
}
167
+ protoWS = Protocol{
168
+ Name: "ws",
169
+ Code: P_WS,
170
+ VCode: CodeToVarint(P_WS),
171
+ }
172
173
174
func init() {
@@ -187,6 +193,7 @@ func init() {
187
193
protoP2P,
188
194
protoUNIX,
189
195
protoP2P_WEBRTC_DIRECT,
196
+ protoWS,
190
197
} {
191
198
if err := AddProtocol(p); err != nil {
192
199
panic(err)
0 commit comments