Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Getting started with "long polling"

Getting started with "long polling"


I would like to start implementing to my site some "long Polling like" techniques.

Basically i need a main feature that refresh an HTML listing whether new data has been added to the DB.

For my setup, I have a entry range VPS server with LAMP environement. I know PHP, JS and i am familiar with Unix systems.

What would be the right technology to achieve some long polling effects?

Thanks a lot for any inputs

Problem courtesy of: silkAdmin


One Solution is to which is based on node.js and makes it super easy to use web-sockets and long polling for real-time updates. You will have to use JavaScript though for the server-side, but it sounds like you're okay with doing that.

Some related articles and discussions:

  • Node.JS Looking for an alternative to socket.IO
  • Comet, long polling with jquery tutorial
  • Polling, Comet, WebSockets, etc
Solution courtesy of: Jamund Ferguson


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Getting started with "long polling"


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription