New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reconnect-core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reconnect-core - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "reconnect-core",
"description": "Generic stream reconnection module.",
"version": "1.0.1",
"version": "1.0.2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -24,3 +24,11 @@ # reconnect-core

var re = reconnect({}, function (stream) {
var re = reconnect({
// all options are optional
initialDelay: 1e3,
maxDelay: 30e3,
type: 'fibonacci', // available: fibonacci, exponential
failAfter: Infinity,
randomisationFactor: 0,
immediate: false
}, function (stream) {
// stream = the stream you should consume

@@ -27,0 +35,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc