File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,28 @@ export const UTP = and(UDP, base('utp'))
35
35
export const QUIC = and ( UDP , base ( 'quic' ) )
36
36
export const QUICV1 = and ( UDP , base ( 'quic-v1' ) )
37
37
38
- export const WebSockets = or (
38
+ const _WebSockets = or (
39
39
and ( TCP , base ( 'ws' ) ) ,
40
40
and ( DNS , base ( 'ws' ) )
41
41
)
42
42
43
- export const WebSocketsSecure = or (
43
+ export const WebSockets = or (
44
+ _WebSockets ,
45
+ and ( _WebSockets , base ( 'p2p' ) )
46
+ )
47
+
48
+ const _WebSocketsSecure = or (
44
49
and ( TCP , base ( 'wss' ) ) ,
45
50
and ( DNS , base ( 'wss' ) ) ,
46
51
and ( TCP , base ( 'tls' ) , base ( 'ws' ) ) ,
47
52
and ( DNS , base ( 'tls' ) , base ( 'ws' ) )
48
53
)
49
54
55
+ export const WebSocketsSecure = or (
56
+ _WebSocketsSecure ,
57
+ and ( _WebSocketsSecure , base ( 'p2p' ) )
58
+ )
59
+
50
60
export const HTTP = or (
51
61
and ( TCP , base ( 'http' ) ) ,
52
62
and ( IP , base ( 'http' ) ) ,
@@ -99,8 +109,8 @@ export const P2PWebRTCDirect = or(
99
109
)
100
110
101
111
export const Reliable = or (
102
- WebSockets ,
103
- WebSocketsSecure ,
112
+ _WebSockets ,
113
+ _WebSocketsSecure ,
104
114
HTTP ,
105
115
HTTPS ,
106
116
P2PWebRTCStar ,
You can’t perform that action at this time.
0 commit comments