gnu-social/public/plugins/Meteor/js/meteorupdater.js
Diogo Cordeiro 2a06261f75 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00

22 lines
528 B
JavaScript

// Update the local timeline from a Meteor server
var MeteorUpdater = function()
{
return {
init: function(server, port, scheme, timeline)
{
Meteor.callbacks["process"] = function(data) {
RealtimeUpdate.receive(JSON.parse(data));
};
Meteor.host = server;
Meteor.port = port;
Meteor.scheme = scheme;
Meteor.joinChannel(timeline, 0);
Meteor.connect();
}
}
}();