binance-api-node
Advanced tools
Comparing version 0.9.16 to 0.9.17
@@ -15,3 +15,3 @@ "use strict"; | ||
var _default = function _default(url) { | ||
return new _reconnectingWebsocket.default(url, [], { | ||
var rws = new _reconnectingWebsocket.default(url, [], { | ||
WebSocket: _ws.default, | ||
@@ -24,4 +24,15 @@ connectionTimeout: 4e3, | ||
}); | ||
var pong = function pong() { | ||
return rws._ws.pong(function () { | ||
return null; | ||
}); | ||
}; | ||
rws.addEventListener('open', function () { | ||
rws._ws.on('ping', pong); | ||
}); | ||
return rws; | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "binance-api-node", | ||
"version": "0.9.16", | ||
"version": "0.9.17", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99344
1652