MCPcopy Create free account
hub / github.com/angular/dev-infra / [kRemoveClient]

Method [kRemoveClient]

github-actions/saucelabs/set-saucelabs-env.js:8523–8531  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

8521 } else if (!dispatcher.dispatch(opts, handler)) {
8522 dispatcher[kNeedDrain] = true;
8523 this[kNeedDrain] = !this[kGetDispatcher]();
8524 }
8525 return !this[kNeedDrain];
8526 }
8527 [kAddClient](client) {
8528 client.on("drain", this[kOnDrain]).on("connect", this[kOnConnect]).on("disconnect", this[kOnDisconnect]).on("connectionError", this[kOnConnectionError]);
8529 this[kClients].push(client);
8530 if (this[kNeedDrain]) {
8531 queueMicrotask(() => {
8532 if (this[kNeedDrain]) {
8533 this[kOnDrain](client[kUrl], [this, client]);
8534 }

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected