@resolveio/server-lib 5.0.16 → 5.0.17

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.
@@ -68,7 +68,7 @@ var SubscriptionManager = /** @class */ (function () {
68
68
  this._sendQueue = [];
69
69
  this._runningQueue = false;
70
70
  this._mainServer = mainServer;
71
- this._nodeCache = new NodeCache({ stdTTL: 0, checkperiod: 120 });
71
+ this._nodeCache = new NodeCache({ stdTTL: 0, checkperiod: 0 });
72
72
  this.serverConfig = serverConfig;
73
73
  this._wss = wss;
74
74
  // Publications
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.0.16",
3
+ "version": "5.0.17",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/server-app.js CHANGED
@@ -334,19 +334,20 @@ var ResolveIOMainServer = /** @class */ (function () {
334
334
  ws.terminate();
335
335
  });
336
336
  });
337
- process.stdout.on('error', function (err) {
338
- if (err.code === "EPIPE") {
339
- console.log('EPIPE error found => ignoring');
340
- _this._wss.clients.forEach(function (ws) {
341
- if (ws['isAlive'] === false) {
342
- if (ws['retryCnt'] >= 60) {
343
- _this.unsubscribeWS(ws);
344
- ws.terminate();
345
- }
346
- }
347
- });
348
- }
349
- });
337
+ // Seems to cause issues
338
+ // process.stdout.on('error', (err) => {
339
+ // if (err.code === "EPIPE") {
340
+ // console.log('EPIPE error found => ignoring');
341
+ // this._wss.clients.forEach((ws: WebSocket) => {
342
+ // if (ws['isAlive'] === false) {
343
+ // if (ws['retryCnt'] >= 60) {
344
+ // this.unsubscribeWS(ws);
345
+ // ws.terminate();
346
+ // }
347
+ // }
348
+ // });
349
+ // }
350
+ // });
350
351
  // Keep alive timer to ping/pong
351
352
  setInterval(function () {
352
353
  _this._wss.clients.forEach(function (ws) {