gnu-social/plugins/Comet
2010-02-17 12:03:14 -05:00
..
bayeux.class.inc.php optionally add a username/password on server side for Comet 2009-05-01 09:42:38 -07:00
CometPlugin.php htmloutputter->script() special cases src's that begin with plugin/ or local/ so that plugins don't need to include common_path() in every call to $action->script() 2010-02-17 12:03:14 -05:00
cometupdate.js better callback functions for comet plugin 2009-07-15 15:31:57 -04:00
jquery.comet.js Some updates for testing Comet 2009-04-26 12:06:50 -04:00
README README for the comet plugin 2009-04-26 15:41:55 -04:00

This is a plugin to automatically load notices in the browser no
matter who creates them -- the kind of thing we see with
search.twitter.com, rejaw.com, or FriendFeed's "real time" news.

NOTE: this is an insecure version; don't roll it out on a production
server.

It requires a cometd server. I've only had the cometd-java server work
correctly; something's wiggy with the Twisted-based server.

After you have a cometd server installed, just add this code to your
config.php:

    require_once(INSTALLDIR.'/plugins/Comet/CometPlugin.php');
    $cp = new CometPlugin('http://example.com:8080/cometd/');

Change 'example.com:8080' to the name and port of the server you
installed cometd on.

TODO:

* Needs to be tested with Ajax submission. Probably messes everything
  up.
* Add more timelines: personal inbox and tags would be great.
* Add security. In particular, only let the PHP code publish notices
  to the cometd server. Currently, it doesn't try to authenticate.