Hacker News new | ask | show | jobs
by malvim 5982 days ago
I had taken a look at it before, and was wondering: Is there a way we can do long-polling stuff with fab?

(by "long-polling stuff" I mean deferring response.finish())

1 comments

Indeed you can. (fab) is 100% async:

http://gist.github.com/287475#file_hello_async.js

Ooh, that's pretty cool. I like the way you receive a "respond" function and call it when you're done. Nice work!