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 043a1ee commit 696f50aCopy full SHA for 696f50a
protocols.go
@@ -36,6 +36,7 @@ const (
36
P_WS = 0x01DD
37
P_WSS = 0x01DE // deprecated alias for /tls/ws
38
P_PLAINTEXTV2 = 0x706c61
39
+ P_WEBRTC = 0x118
40
)
41
42
var (
@@ -247,6 +248,11 @@ var (
247
248
Code: P_WSS,
249
VCode: CodeToVarint(P_WSS),
250
}
251
+ protoWebRTC = Protocol{
252
+ Name: "webrtc",
253
+ Code: P_WEBRTC,
254
+ VCode: CodeToVarint(P_WEBRTC),
255
+ }
256
257
258
func init() {
@@ -283,6 +289,7 @@ func init() {
283
289
protoWS,
284
290
protoWSS,
285
291
protoPlaintextV2,
292
+ protoWebRTC,
286
293
} {
287
294
if err := AddProtocol(p); err != nil {
288
295
panic(err)
0 commit comments