]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Comet/README
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
[quix0rs-gnu-social.git] / plugins / Comet / README
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
5 NOTE: this is an insecure version; don't roll it out on a production
6 server.
7
8 It requires a cometd server. I've only had the cometd-java server work
9 correctly; something's wiggy with the Twisted-based server.
10
11 After you have a cometd server installed, just add this code to your
12 config.php:
13
14     require_once(INSTALLDIR.'/plugins/Comet/CometPlugin.php');
15     $cp = new CometPlugin('http://example.com:8080/cometd/');
16
17 Change 'example.com:8080' to the name and port of the server you
18 installed cometd on.
19
20 TODO:
21
22 * Needs to be tested with Ajax submission. Probably messes everything
23   up.
24 * Add more timelines: personal inbox and tags would be great.
25 * Add security. In particular, only let the PHP code publish notices
26   to the cometd server. Currently, it doesn't try to authenticate.