e1eadbcf4f
Signed-off-by: Roland Haeder <roland@mxchange.org>
22 lines
528 B
JavaScript
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();
|
|
}
|
|
}
|
|
}();
|
|
|