README 1.0 KB

123456789101112131415161718192021222324252627282930
  1. This is a plugin to automatically load notices in the browser no
  2. matter who creates them -- the kind of thing we see with
  3. search.twitter.com, rejaw.com, or FriendFeed's "real time" news.
  4. NOTE: this is an insecure version; don't roll it out on a production
  5. server.
  6. It requires a cometd server. I've only had the cometd-java server work
  7. correctly; something's wiggy with the Twisted-based server. See here
  8. for help setting up a comet server:
  9. http://cometd.org/
  10. After you have a cometd server installed, just add this code to your
  11. config.php:
  12. require_once(INSTALLDIR.'/plugins/Comet/CometPlugin.php');
  13. $cp = new CometPlugin('http://example.com:8080/cometd/');
  14. Change 'example.com:8080' to the name and port of the server you
  15. installed cometd on.
  16. TODO:
  17. * Needs to be tested with Ajax submission. Probably messes everything
  18. up.
  19. * Add more timelines: personal inbox and tags would be great.
  20. * Add security. In particular, only let the PHP code publish notices
  21. to the cometd server. Currently, it doesn't try to authenticate.