[wp-hackers] Long Polling, Ajax and WordPress

Dagan Henderson Dagan.Henderson at epyllion.com
Tue Nov 1 00:57:18 UTC 2011


Alex,

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.


-----Original Message-----
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?

- - - -
Kind regards,
Alex Hempton-Smith

www.alexhemptonsmith.com
www.twitter.com/hempsworth
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list