haxelib git RxJS https://github.com/hachibeeDI/RxJS-haxe.git
add your .hxml
-lib RxJS
import rx.Observable;
// ATTENTION: static methods are all in `ObservableStatic` class.
var ob: Observable<js.html.Event> = ObservableStatic.fromEvent(null, "keyup");
Reccomend to use above 3.2 . Because old version Haxe could not use reserved word (ex: catch, try……).
If you want to call some methods named Haxe's reserved words, add the _
at the end.
from
// Haxe
ob.catch_(function(x) {return null;});
to
// JavaScript
ob1["catch"](function(x) {return null;});
MIT