Socket
Socket
Sign inDemoInstall

rxjs-ws-channels-filters

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 0.4.3

19

dist/index.js

@@ -311,3 +311,3 @@ 'use strict';

var vm = this;
vm.retries = 0;
vm.retries = false;
vm.openedOnce = false;

@@ -327,12 +327,7 @@

.retryWhen(function (errors) {
return rxSocket.Rx.Observable
.range(0, 100000)
.zip(errors, function (i) {
return i;
})
.flatMap(function (i) {
vm.retries = i;
vm.connectionStatus.next(connectionStatusOptions.connectionRetry);
return rxSocket.Rx.Observable.timer(5 * 1000);
});
return errors.flatMap(function () {
vm.retries = true;
vm.connectionStatus.next(connectionStatusOptions.connectionRetry);
return rxSocket.Rx.Observable.timer(5 * 1000);
});
}).share().publishReplay(1000).refCount();

@@ -347,3 +342,3 @@

vm.openedOnce && vm.retries ? connectionStatusOptions.openedAfterRetry : connectionStatusOptions.open);
vm.retries = 0;
vm.retries = false;
vm.openedOnce = true;

@@ -350,0 +345,0 @@ inputSubscription = vm.subject.subscribe(function (data) {

{
"name": "rxjs-ws-channels-filters",
"version": "0.4.2",
"version": "0.4.3",
"description": "RxJS websockets implementation with channels and filters",

@@ -10,4 +10,4 @@ "main": "dist/index.js",

"devDependencies": {
"connect": "3.6.5",
"eslint": "4.17.0",
"connect": "3.6.6",
"eslint": "4.18.1",
"gulp": "3.9.1",

@@ -14,0 +14,0 @@ "gulp-clean": "0.4.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc