request.on('response', function(response){
var data = [];
response.on('data', function(chunk) {
data.push(chunk);
});
response.on('end', function() {
var result = JSON.parse(data.join(''))
return result
});
});
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>
echo('\n');
This cut down my response time alot, AND fixed the sporadic cut offs.
I wasn't sure even why, but its what mscdex mentioned too so i figured
id throw it out there.
Iv seen PHP not respond fully with a flush or newline.
2010/9/11 ec.developer <ec.dev...@gmail.com>: