Oboe.js: reacting to Ajax/Rest quicker by not waiting for it to finish
71–74 of 74 posts
Re: Oboe.js: reacting to Ajax/Rest quicker by not waiting for it to finish
#72https://github.com/jimhigson/oboe.js#reading-from-any-stream...
oboe( fs.createReadStream( '/home/me/secretPlans.json' ) )
.node('!.schemes.*', function(scheme){
console.log('Aha! ' + scheme);
});
.node('!.plottings.*', function(deviousPlot){
console.log('Hmmm! ' + deviousPlot);
})
.done(function(){
console.log("*twiddles mustache*");
});Re: Oboe.js: reacting to Ajax/Rest quicker by not waiting for it to finish
#73Earlier quoted context omitted.
in my experience, you need to set flush to SYNC for it to work on chrome without manually flushing
Do you know how to do that from node? Here's the little test service I wrote to stream out some gzipped content: https://github.com/jimhigson/oboe.js/blob/master/test/stream...
Re: Oboe.js: reacting to Ajax/Rest quicker by not waiting for it to finish
#74Is it intentional that it accepts invalid JSON? I ask only because most of the examples on that page would not be valid as the name part of the key:value pairs needs to be quoted. PS: Don't upvote this, it's a minor detail and the big point about the use-case is far more important than this comment.
Parsing is built on top of Clarinet (see where the name comes from?) https://github.com/dscape/clarinet Unquoted JSON in docs is a mistake. I'll take a look now.