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