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

Method close

github-actions/browserstack/set-browserstack-env.js:18357–18382  ·  view source on GitHub ↗

* @see https://websockets.spec.whatwg.org/#dom-websocket-close * @param {number|undefined} code * @param {string|undefined} reason

(code = void 0, reason = void 0)

Source from the content-addressed store, hash-verified

18355 }
18356 get closingInfo() {
18357 return __privateGet(this, _info).closeInfo;
18358 }
18359 };
18360 _buffers = new WeakMap();
18361 _fragmentsBytes = new WeakMap();
18362 _byteOffset = new WeakMap();
18363 _loop = new WeakMap();
18364 _state = new WeakMap();
18365 _info = new WeakMap();
18366 _fragments = new WeakMap();
18367 _extensions = new WeakMap();
18368 _maxFragments = new WeakMap();
18369 _maxPayloadSize = new WeakMap();
18370 _validatePayloadLength = new WeakSet();
18371 validatePayloadLength_fn = function() {
18372 if (__privateGet(this, _maxPayloadSize) > 0 && !isControlFrame(__privateGet(this, _info).opcode) && __privateGet(this, _info).payloadLength + __privateGet(this, _fragmentsBytes) > __privateGet(this, _maxPayloadSize)) {
18373 failWebsocketConnectionWithCode(this.ws, 1009, "Payload size exceeds maximum allowed size");
18374 return false;
18375 }
18376 return true;
18377 };
18378 module.exports = {
18379 ByteParser
18380 };
18381 }
18382 });
18383
18384 //
18385 var require_sender = __commonJS({

Callers

nothing calls this directly

Calls 1

closeWebSocketConnectionFunction · 0.70

Tested by

no test coverage detected