]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Meteor/js/meteorupdater.js
Merge branch 'nightly' of gitorious.org:social/mainline into nightly
[quix0rs-gnu-social.git] / plugins / Meteor / js / meteorupdater.js
1 // Update the local timeline from a Meteor server
2
3 var MeteorUpdater = function()
4 {
5      return {
6
7           init: function(server, port, scheme, timeline)
8           {
9                Meteor.callbacks["process"] = function(data) {
10                     RealtimeUpdate.receive(JSON.parse(data));
11                };
12
13                Meteor.host = server;
14                Meteor.port = port;
15                Meteor.scheme = scheme;
16                Meteor.joinChannel(timeline, 0);
17                Meteor.connect();
18           }
19      }
20 }();
21