1 // update the local timeline from a Meteor server
4 var MeteorUpdater = function()
8 init: function(server, port, timeline)
12 Meteor.callbacks["process"] = function(data) {
13 var d = JSON.parse(data);
14 screen_name = d['user']['screen_name'];
16 if (timeline == 'public' ||
17 $('address .url')[0].href+screen_name+'/all' == window.location.href ||
18 $('address .url')[0].href+screen_name == window.location.href) {
19 RealtimeUpdate.receive(d);
25 Meteor.joinChannel(timeline, 0);