The Reactive Extensions for JavaScript is a set of libraries to compose asynchronous, resilient and responsive event driven programs using observable collections with ECMA Script5 Array#extras style composition in JavaScript.
Questions tagged [reactive-extensions-js]
121 questions
0
votes
1 answer
Augment seperate values in observable of array - RxJS
I've been trying to tackle this problem for a while now, I would guess this is a pretty common problem but what I want to do is augment items in an array coming from an observable, and the augmentation happens with an observable or promiselike
So I…

YentheO
- 307
- 4
- 13
0
votes
1 answer
Using instance variables/methods within Reactive Framework subscription in Javascript
I've got an object in JS in which I'm trying to test out the Reactive Framework In an event subscription I'd like to call an instance method of the enclosing class where the subscription is defined, like this;
function MyClass()
{
var…

p.q
- 355
- 1
- 3
- 5
0
votes
2 answers
RxJS/ReactiveX Proper modules communication
I'm pretty new to Reactive Programming but already in love. However it is still hard to switch my brain to it. I'm trying to follow all recommendations as "Avoid using subjects" and "Avoid impure functions" and of course "Avoid imperative…

Pavel Kolev
- 111
- 8
0
votes
1 answer
Population with embeded queries RxJs
I cannot figure out how can I solve the following problem.
There is an object type:
Box {
Fruit[n]: {
Kinds[n]: {
id: string;
name: string;
}
}
}
I got the box of fuits from an API call as an Observable…

Lajos
- 2,549
- 6
- 31
- 38
0
votes
2 answers
Rx.Observable.interval with different interval for each event
I have a bunch of events, each of which has to be triggered after the previous one with a delay specific to this event.
Rx.Observable.interval gives a possibility to provide just one interval.
Is there a way to provide different intervals?

Ostap Maliuvanchuk
- 1,125
- 2
- 12
- 32
0
votes
2 answers
RxJS Observable That waits on Observable
So I have an observable which makes an HTTP post to get the access token from a server. I have another which performs a get to the same server, but requires the access token from the first to exist. So I would like to be able to subscribe to both…

Colton Voege
- 409
- 2
- 5
- 12
0
votes
1 answer
RxJS bufferWithCount() not pausing for timeout
I am trying to control the inflow for a slow subscriber. Tried the below in NodeJS
var xmlNodeStream = Rx.Observable.from([1,2,3,4,5,6,7,8,9,10,11]);
var commJson = xmlNodeStream.bufferWithCount(2).publish();
var FastSubscriber =…

Gopalakrishna Palem
- 1,705
- 1
- 20
- 34
0
votes
1 answer
How do I get event name of Observable created with .fromEvent
I'm trying to restrict what events coming from common message bus should be emitted to server.
Allowed events are on outgoingEvents array. Problem is that to properly send them th server I need event name.
var Events = new EventEmitter();
var…

Yury Solovyov
- 526
- 8
- 18
0
votes
1 answer
How to cancel a composed RxJS observable
Folks, I have an app using RxJS to handle mouse events. I am composing these events into more complex observable 'gestures'. One such gesture is "shake".
The series of events I am trying to compose are:
mousedown
mousemove left
mousemove…

bnieland
- 6,047
- 4
- 40
- 66
0
votes
1 answer
RxJS variable length window
I am wondering how I can create an effect of windowWithMaxCount, which would work like windowWithCount but the window size would change from 1 to maxCount.
What I am doing is drawing a line chart base on c stream of events. The line chart needs…

apolenur
- 335
- 5
- 11
0
votes
1 answer
Join two observables in RX.js
I'm trying to create new observable based on two others. I have:
var mouseClickObservable = Rx.Observable.fromEvent(this.canvas, "click");
var mouseMoveObservable = Rx.Observable.fromEvent(this.canvas, "mousemove");
function findObject(x, y) {/*…

Alexey Vagarenko
- 1,206
- 8
- 15
0
votes
1 answer
How to get a Promise like pattern with subscription in RxJS?
I am trying to figure out if the following is possible with any of the existing operators in RxJS, or if I need to roll my own extension:
var x = // some observable sequence
var y = // some observable sequence
var z = // some observable sequence…

Egil Hansen
- 15,028
- 8
- 37
- 54
0
votes
1 answer
How to combine Rx.js subscription with Jquery Promise?
I use Rx.js and JqueryPromises
I have run into a situation where i call a method to process an event published by Rx. This method however returns a promise.
eventStream.Subscribe(function(e) { methodThatReturnsPromise(e);});
The problem is that the…

Adam Mills
- 7,719
- 3
- 31
- 47
0
votes
2 answers
Where can I find the RXUI Javascript 'Time Flies' example?
About two years ago, there was an awesome RXUI-For-Web prototype from Microsoft Research, that came with an example html page that animated the text 'Time flies like an arrow' across your page as you moved your mouse. I have been trying to find the…

Armentage
- 12,065
- 8
- 33
- 33
0
votes
0 answers
jqGrid and Rx Reactive javascript extensions
I am trying to create an Observable of onSelectRow events in jqGrid
using the syntax below:
grid.jqGrid().toObservable("onSelectRow").Select(function (event) {
return alert($(event.target).val());
});
Nothing seems to…

chugh97
- 9,602
- 25
- 89
- 136