]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Meteor/meteorupdater.js
Just a label change. Since the user already went ahead with
[quix0rs-gnu-social.git] / plugins / Meteor / 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, 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.joinChannel(timeline, 0);
16                Meteor.connect();
17           }
18      }
19 }();
20