MCPcopy Create free account
hub / github.com/angular/dev-infra / onMessageBegin

Method onMessageBegin

github-actions/browserstack/set-browserstack-env.js:6194–6208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6192 this.ptr = null;
6193 this.timeout && timers.clearTimeout(this.timeout);
6194 this.timeout = null;
6195 this.timeoutValue = null;
6196 this.timeoutType = null;
6197 this.paused = false;
6198 }
6199 onStatus(buf) {
6200 this.statusText = buf.toString();
6201 }
6202 onMessageBegin() {
6203 const { socket, client } = this;
6204 if (socket.destroyed) {
6205 return -1;
6206 }
6207 if (client[kRunning] === 0) {
6208 util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
6209 return -1;
6210 }
6211 const request = client[kQueue][client[kRunningIdx]];

Callers 1

lazyllhttpFunction · 0.45

Calls 2

destroyMethod · 0.45
onResponseStartedMethod · 0.45

Tested by

no test coverage detected