File tree Expand file tree Collapse file tree 1 file changed +15
-22
lines changed Expand file tree Collapse file tree 1 file changed +15
-22
lines changed Original file line number Diff line number Diff line change @@ -67,30 +67,23 @@ const useOperatorReachabilityStore = create<{
67
67
draft . pending = true
68
68
} )
69
69
70
- let reachable = false
71
-
72
- let ws : WebSocket | undefined
73
-
74
- try {
75
- reachable = await new Promise < boolean > ( ( resolve ) => {
76
- /**
77
- * @todo Attempt the wss connections to the declared endpoints
78
- * for verification.
79
- */
80
- resolve ( tls && ! ! port && ! ! host && ! isIPAddress ( host ) )
81
- } )
82
- } finally {
83
- ws ?. close ( )
84
-
85
- ws = undefined
70
+ /**
71
+ * StreamrClient opens many WebSocket connections, often hitting
72
+ * browser limits.
73
+ *
74
+ * Since browsers handle this differently, it's hard to tell if
75
+ * a failure is due to node issues or connection limits.
76
+ *
77
+ * @todo Let’s revisit this once we have a more reliable method for
78
+ * confirming node reachability.
79
+ */
86
80
87
- updateProbe ( url , ( draft ) => {
88
- Object . assign ( draft , {
89
- pending : false ,
90
- reachable,
91
- } )
81
+ updateProbe ( url , ( draft ) => {
82
+ Object . assign ( draft , {
83
+ pending : false ,
84
+ reachable : tls && ! ! port && ! ! host && ! isIPAddress ( host ) ,
92
85
} )
93
- }
86
+ } )
94
87
} ,
95
88
}
96
89
} )
You can’t perform that action at this time.
0 commit comments