I have been using package rx in NodeJS and everything is ok. Now, I tried to use rxjs (newer version of rx), and I don't understand anything.
When my Observable fails, I want to transform it in another one. Tipically, I would do it with catch, but it doesn't work anymore.
//I know it will never fail but it's just for the example
Rx.of(4).catch(err => Rx.of(7));
But I get:
Rx.of(...).catch is not a function
Same with onErrorResumeNext
Rx.of(4).onErrorResumeNext(Rx.of(7));
Rx.of(...).onErrorResumeNext is not a function
What am I doing wrong?