I've uploaded an SSE/Comet demo extension for anyone who's interested: https://github.com/worden-lee/cometdemo
For demo purposes, it creates a notification bubble on your page in which you get an ongoing feed of the contents of your wiki's $wgDebugLogFile.
Since that file may contain sensitive information, I don't recommend this extension for public-readable wikis.
Of course the code can be adapted to stream information from a file, from memcached, from the database, etc.
The extension seems to work in at least MW 1.21+. If you're curious but don't want to run it yourself, tell me and I'll let you look it over on my test wiki.
LW
On 11/19/2013 07:50 PM, wikitech-l-request@lists.wikimedia.org wrote:
I have an early version of this working now, that watches a file and spools it out in an SSE event stream (by violently hijacking the ApiBase logic and seizing low-level control of the HTTP response - I'm sure it could be integrated into the output options in the Api class hierarchy if there's interest). This seems to work pretty well so far.