]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Meteor/meteorupdater.js
Merge branch '0.8.x' of git://gitorious.org/~brion/statusnet/brion-fixes into 0.8.x
[quix0rs-gnu-social.git] / plugins / Meteor / meteorupdater.js
1 // Update the local timeline from a Meteor server
2 // XXX: If @a is subscribed to @b, @a should get @b's notices in @a's Personal timeline.
3 //      Do Replies timeline.
4
5 var MeteorUpdater = function()
6 {
7      return {
8
9           init: function(server, port, timeline)
10           {
11                Meteor.callbacks["process"] = function(data) {
12                     RealtimeUpdate.receive(JSON.parse(data));
13                };
14
15                Meteor.host = server;
16                Meteor.port = port;
17                Meteor.joinChannel(timeline, 0);
18                Meteor.connect();
19           }
20      }
21 }();
22