1 // Update the local timeline from a Meteor server
2 // XXX: If @a is subscribed to @b, @a should get @b's notices in @a's Personal timeline.
3 // Do Replies timeline.
5 var MeteorUpdater = function()
9 init: function(server, port, timeline)
11 Meteor.callbacks["process"] = function(data) {
12 var d = JSON.parse(data);
14 var user_url = $('address .url')[0].href+d['user']['screen_name'];
16 var wlh = window.location.href;
18 if (wlh.indexOf('?') > 0) {
19 wlh = wlh.slice(0, wlh.indexOf('?'))
22 if (timeline == 'public' ||
23 user_url+'/all' == wlh ||
26 RealtimeUpdate.receive(d);
32 Meteor.joinChannel(timeline, 0);