[wp-hackers] Long Polling, Ajax and WordPress
Dagan.Henderson at epyllion.com
Tue Nov 1 00:57:18 UTC 2011
The reason for my question was along the same lines that Eric was getting at. If you want a super-efficient system, look to something like socket.io to serve your polling requests. It'll do whatever the browser will support, including websockets, but is also backwards compatible down to traditional AJAX. You'll have to query the DB from outside of WP, though. So just keep that in mind.
From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Alex Hempton-Smith
Sent: Monday, October 31, 2011 5:33 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] Long Polling, Ajax and WordPress
Thanks for your input,
@Dagan: I'm just on a Dreamhost shared server at the moment, may go back to slicehost once the project is more mature.
@Eric: I did notice the thread when it first came round, and it seems like the conclusion was to just stick with Ajax long-polling for the time being; due to server and browser support.
@Claude: Thanks for the efficiency tip, I may look into writing live data to an XML file for faster reading!
Does anybody have any advice on how I can convert my current code, which is a simple 'short' poll of the server every 10 seconds, to something more like long-polling?
- - - -
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers