We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8533a9 commit 5d7fd30Copy full SHA for 5d7fd30
packages/protocol/src/browser/client.ts
@@ -176,6 +176,13 @@ export class Client {
176
*/
177
private async remoteCall(proxyId: number | Module, method: string, args: any[]): Promise<any> {
178
if (this.disconnected && typeof proxyId === "number") {
179
+ // Can assume killing or closing works because a disconnected proxy
180
+ // is disposed on the server's side.
181
+ switch (method) {
182
+ case "close":
183
+ case "kill":
184
+ return Promise.resolve();
185
+ }
186
return Promise.reject(
187
new Error(`Unable to call "${method}" on proxy ${proxyId}: disconnected`),
188
);
0 commit comments