Setting a "resume" messageid with meteor.js?

3 views
Skip to first unread message

Douglas Bischoff

unread,
Jul 20, 2009, 10:34:53 AM7/20/09
to meteorserver
Me again.

Okay, things are going rather well. Now, my application needs a method
to start the stream from a known message id (as suggested in the
server documentation) but there doesn't appear to be a way to do that
using meteor.js.

Looking through meteor.js' functions, it appears that it would be a
trival matter to make a version of "joinChannel: function(channelname,
backtrack)" that goes something like "resumeChannel function
(channelname, messageID)" then changes:

Meteor.channels[channelname] = {backtrack:backtrack, lastmsgreceived:
0};

to

Meteor.channels[channelname] = {backtrack:0,
lastmsgreceived:messageID};

Is this possible? I can, naturally, patch my own version of meteor.js
to do that (or create my own version and stick it on my own server)
but I wonder if, since this function doesn't already exist, I am
looking at this incorrectly?

Thanks again,

-Doug
Reply all
Reply to author
Forward
0 new messages