I want to use RxJS inside of my socket.on(\'sense\',function(data){});. I am stuck and confused with very few documentation available and my lack of understanding R
socket.on(\'sense\',function(data){});
You can create an Observable like so:
var senses = Rx.Observable.fromEventPattern( function add (h) { socket.on('sense',h); } );
Then use senses like any other Observable.
senses