You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Error on SharedWorkerConnector.connect(): already connected.",
94
+
);
95
+
else
96
+
thrownewError("Error on SharedWorkerConnector.connect(): closing.");
92
97
}
93
98
94
99
//----
@@ -113,7 +118,7 @@ export class SharedWorkerConnector<
113
118
(awaitthis._Handshake(options.timeout,at))!==
114
119
SharedWorkerConnector.State.CONNECTING
115
120
)
116
-
thrownewDomainError(
121
+
thrownewError(
117
122
`Error on SharedWorkerConnector.connect(): target shared-worker may not be opened by TGrid. It's not following the TGrid's own handshake rule when connecting.`,
118
123
);
119
124
@@ -142,9 +147,9 @@ export class SharedWorkerConnector<
142
147
reject.name==="reject"&&
143
148
typeofreject.message==="string"
144
149
)
145
-
thrownewRuntimeError(reject.message);
150
+
thrownewError(reject.message);
146
151
else
147
-
thrownewDomainError(
152
+
thrownewError(
148
153
`Error on SharedWorkerConnector.connect(): target shared-worker may not be opened by TGrid. It's not following the TGrid's own handshake rule.`,
149
154
);
150
155
}
@@ -170,7 +175,7 @@ export class SharedWorkerConnector<
170
175
sleep_until(at).then(()=>{
171
176
if(completed===false){
172
177
reject(
173
-
newDomainError(
178
+
newError(
174
179
`Error on SharedWorkerConnector.connect(): target shared-worker is not sending handshake data over ${timeout} milliseconds.`,
0 commit comments