fixparser-plugin-messagestore-kdb 9.4.11 → 9.4.12-dad63fa1

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.
@@ -2330,11 +2330,23 @@ var require_websocket = __commonJS({
2330
2330
  this._isServer = false;
2331
2331
  this._redirects = 0;
2332
2332
  if (protocols === void 0) {
2333
- protocols = [];
2333
+ if (!options || options.protocols === void 0) {
2334
+ protocols = [];
2335
+ } else if (Array.isArray(options.protocols)) {
2336
+ protocols = options.protocols;
2337
+ } else {
2338
+ protocols = [options.protocols];
2339
+ }
2334
2340
  } else if (!Array.isArray(protocols)) {
2335
2341
  if (typeof protocols === "object" && protocols !== null) {
2336
2342
  options = protocols;
2337
- protocols = [];
2343
+ if (options.protocols === void 0) {
2344
+ protocols = [];
2345
+ } else if (Array.isArray(options.protocols)) {
2346
+ protocols = options.protocols;
2347
+ } else {
2348
+ protocols = [options.protocols];
2349
+ }
2338
2350
  } else {
2339
2351
  protocols = [protocols];
2340
2352
  }
@@ -2531,7 +2543,6 @@ var require_websocket = __commonJS({
2531
2543
  }
2532
2544
  return;
2533
2545
  }
2534
- this._readyState = _WebSocket.CLOSING;
2535
2546
  this._sender.close(code, data, !this._isServer, (err) => {
2536
2547
  if (err) return;
2537
2548
  this._closeFrameSent = true;
@@ -2539,6 +2550,7 @@ var require_websocket = __commonJS({
2539
2550
  this._socket.end();
2540
2551
  }
2541
2552
  });
2553
+ this._readyState = _WebSocket.CLOSING;
2542
2554
  setCloseTimer(this);
2543
2555
  }
2544
2556
  /**
@@ -2763,6 +2775,7 @@ var require_websocket = __commonJS({
2763
2775
  socketPath: void 0,
2764
2776
  hostname: void 0,
2765
2777
  protocol: void 0,
2778
+ protocols: void 0,
2766
2779
  timeout: void 0,
2767
2780
  method: "GET",
2768
2781
  host: void 0,