We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e3298 commit a40b139Copy full SHA for a40b139
protocols.go
@@ -32,6 +32,7 @@ const (
32
P_NOISE = 0x01c6
33
P_WS = 0x01DD
34
P_WSS = 0x01DE // deprecated alias for /tls/ws
35
+ P_PLAINTEXTV2 = 0x706c61
36
)
37
38
var (
@@ -209,6 +210,11 @@ var (
209
210
Code: P_NOISE,
211
VCode: CodeToVarint(P_NOISE),
212
}
213
+ protoPlaintextV2 = Protocol{
214
+ Name: "plaintextv2",
215
+ Code: P_PLAINTEXTV2,
216
+ VCode: CodeToVarint(P_PLAINTEXTV2),
217
+ }
218
protoWS = Protocol{
219
Name: "ws",
220
Code: P_WS,
@@ -251,6 +257,7 @@ func init() {
251
257
protoNOISE,
252
258
protoWS,
253
259
protoWSS,
260
+ protoPlaintextV2,
254
261
} {
255
262
if err := AddProtocol(p); err != nil {
256
263
panic(err)
0 commit comments