danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

onFinished Method? #167

Closed AbdelhamidAhmed closed 8 years ago

AbdelhamidAhmed commented 8 years ago

Is there an onFinished method when the feedparser is done reading all the data from the stream?

danmactough commented 8 years ago

I think the end event is what you're looking for.

AbdelhamidAhmed commented 8 years ago

What I mean it is, I wanted to pass all the data to a certain object AFTER the parser has done all the loading, because when I'm using multiple rss feeds, it takes some time to load, and I have to refresh the page with the data a few times until the parser gets all the data. So what I am trying to accomplish is wait until all the data is loaded and then passing it to the object, if it's possible

mooyoul commented 8 years ago

Why don't you use end event which used in previous comment?

AbdelhamidAhmed commented 8 years ago

I figured it out, thanks a lot :)