fixparser-plugin-messagestore-kdb 9.4.11 → 9.4.12-56b5223b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2329,11 +2329,23 @@ var require_websocket = __commonJS({
2329
2329
  this._isServer = false;
2330
2330
  this._redirects = 0;
2331
2331
  if (protocols === void 0) {
2332
- protocols = [];
2332
+ if (!options || options.protocols === void 0) {
2333
+ protocols = [];
2334
+ } else if (Array.isArray(options.protocols)) {
2335
+ protocols = options.protocols;
2336
+ } else {
2337
+ protocols = [options.protocols];
2338
+ }
2333
2339
  } else if (!Array.isArray(protocols)) {
2334
2340
  if (typeof protocols === "object" && protocols !== null) {
2335
2341
  options = protocols;
2336
- protocols = [];
2342
+ if (options.protocols === void 0) {
2343
+ protocols = [];
2344
+ } else if (Array.isArray(options.protocols)) {
2345
+ protocols = options.protocols;
2346
+ } else {
2347
+ protocols = [options.protocols];
2348
+ }
2337
2349
  } else {
2338
2350
  protocols = [protocols];
2339
2351
  }
@@ -2530,7 +2542,6 @@ var require_websocket = __commonJS({
2530
2542
  }
2531
2543
  return;
2532
2544
  }
2533
- this._readyState = _WebSocket.CLOSING;
2534
2545
  this._sender.close(code, data, !this._isServer, (err) => {
2535
2546
  if (err) return;
2536
2547
  this._closeFrameSent = true;
@@ -2538,6 +2549,7 @@ var require_websocket = __commonJS({
2538
2549
  this._socket.end();
2539
2550
  }
2540
2551
  });
2552
+ this._readyState = _WebSocket.CLOSING;
2541
2553
  setCloseTimer(this);
2542
2554
  }
2543
2555
  /**
@@ -2762,6 +2774,7 @@ var require_websocket = __commonJS({
2762
2774
  socketPath: void 0,
2763
2775
  hostname: void 0,
2764
2776
  protocol: void 0,
2777
+ protocols: void 0,
2765
2778
  timeout: void 0,
2766
2779
  method: "GET",
2767
2780
  host: void 0,