@pm2/js-api
Advanced tools
Comparing version 0.5.13 to 0.5.14
{ | ||
"name": "@pm2/js-api", | ||
"version": "0.5.13", | ||
"version": "0.5.14", | ||
"description": "PM2.io API Client for Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -79,2 +79,9 @@ /* global WebSocket */ | ||
ReconnectableWebSocket.prototype.ping = function () { | ||
debug('ping') | ||
if (this._socket && this._socket.readyState === _WebSocket.OPEN && this._messageQueue.length === 0) { | ||
this._socket.ping() | ||
} | ||
} | ||
ReconnectableWebSocket.prototype.close = function (code, reason) { | ||
@@ -81,0 +88,0 @@ debug('close') |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1106011
17860