MCPcopy
hub / github.com/microsoft/playwright / close

Method close

packages/utils/socksProxy.ts:452–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 }
451
452 async close() {
453 if (this._closed)
454 return;
455 this._closed = true;
456 for (const socket of this._sockets)
457 socket.destroy();
458 this._sockets.clear();
459 await new Promise(f => this._server.close(f));
460 }
461
462 onSocketRequested(payload: SocksSocketRequestedPayload) {
463 if (!this._patternMatcher(payload.host, payload.port)) {

Callers 1

Calls 3

destroyMethod · 0.80
clearMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected