I am a complete noob to comet and meteor. I have a few questions. I
would like to know if there is any possibility for meteor server to
push data to a single user?
In a chat context this would be represented as a private chat. But in
a more general context this could for instance be represented by a
user with a buddylist getting notifications about what other users in
his/hers buddylist are doing at the moment.
For instance, user A has user B,C, and D in his buddylist. User B and
C are in a private chat and user D is reading a forum post. User A
would then be notified about user B, C and D's current activities.
Is there anyway that each user could be autosubscribed to a channel
consisting of events from users in his buddylist?
Hmm, perhaps this comes out a bit confusing....I hope someone
understands what I am getting at.
If anyone has made a successful example that might resemble what I am
looking for please post a link and an explanation.
The easiest way would be to have each user subscribe to a public
notification channel. Then, when they are notified of a private chat, they
subscribe to the new chat channel for that chat.
If you will have a have a high traffic site, this probably will not work do
to meteor's scaling (it scales well for number of users, but not number of
channels). You should just have a global chat channel. Then, to keep from
snooping, you could encrypt the chat messages and decrypt them on the client
side. To get the chat convo's cypher key you make an ajax request for it on
the client side so that it is never sent through the global channel.
On Sat, Sep 12, 2009 at 11:50 PM, Bjarman <fredrik.bjar...@gmail.com> wrote:
> Hello!
> I am a complete noob to comet and meteor. I have a few questions. I
> would like to know if there is any possibility for meteor server to
> push data to a single user?
> In a chat context this would be represented as a private chat. But in
> a more general context this could for instance be represented by a
> user with a buddylist getting notifications about what other users in
> his/hers buddylist are doing at the moment.
> For instance, user A has user B,C, and D in his buddylist. User B and
> C are in a private chat and user D is reading a forum post. User A
> would then be notified about user B, C and D's current activities.
> Is there anyway that each user could be autosubscribed to a channel
> consisting of events from users in his buddylist?
> Hmm, perhaps this comes out a bit confusing....I hope someone
> understands what I am getting at.
> If anyone has made a successful example that might resemble what I am
> looking for please post a link and an explanation.
> I am a complete noob to comet and meteor. I have a few questions. I
> would like to know if there is any possibility for meteor server to
> push data to a single user?
> In a chat context this would be represented as a private chat. But in
> a more general context this could for instance be represented by a
> user with a buddylist getting notifications about what other users in
> his/hers buddylist are doing at the moment.
> For instance, user A has user B,C, and D in his buddylist. User B and
> C are in a private chat and user D is reading a forum post. User A
> would then be notified about user B, C and D's current activities.
> Is there anyway that each user could be autosubscribed to a channel
> consisting of events from users in his buddylist?
> Hmm, perhaps this comes out a bit confusing....I hope someone
> understands what I am getting at.
> If anyone has made a successful example that might resemble what I am
> looking for please post a link and an explanation.
> The easiest way would be to have each user subscribe to a public
> notification channel. Then, when they are notified of a private chat, they
> subscribe to the new chat channel for that chat.
> If you will have a have a high traffic site, this probably will not work do
> to meteor's scaling (it scales well for number of users, but not number of
> channels). You should just have a global chat channel. Then, to keep from
> snooping, you could encrypt the chat messages and decrypt them on the client
> side. To get the chat convo's cypher key you make an ajax request for it on
> the client side so that it is never sent through the global channel.
> Hope that helps some :)
> Kevin Peno
> W: 425.582.8139
> C: 425.408.1094
> On Sat, Sep 12, 2009 at 11:50 PM, Bjarman <fredrik.bjar...@gmail.com> wrote:
> > Hello!
> > I am a complete noob to comet and meteor. I have a few questions. I
> > would like to know if there is any possibility for meteor server to
> > push data to a single user?
> > In a chat context this would be represented as a private chat. But in
> > a more general context this could for instance be represented by a
> > user with a buddylist getting notifications about what other users in
> > his/hers buddylist are doing at the moment.
> > For instance, user A has user B,C, and D in his buddylist. User B and
> > C are in a private chat and user D is reading a forum post. User A
> > would then be notified about user B, C and D's current activities.
> > Is there anyway that each user could be autosubscribed to a channel
> > consisting of events from users in his buddylist?
> > Hmm, perhaps this comes out a bit confusing....I hope someone
> > understands what I am getting at.
> > If anyone has made a successful example that might resemble what I am
> > looking for please post a link and an explanation.
Yes, for a chat only application jabber would suffice I guess. But i
would like not only to push chat events but in fact any event
concerning user activities. I have no experience in the jabber
protocol, perhaps it can do more than chat related stuff?
Are there any live examples where jabber is used "out of context" like
this?
Br / Fredrik
On Sep 14, 5:06 am, Chris James <dcrawks...@gmail.com> wrote:
> Have you looked at Jabber/eJabberd/XMPP protocol?
> On Sep 13, 2:50 am, Bjarman <fredrik.bjar...@gmail.com> wrote:
> > Hello!
> > I am a complete noob to comet and meteor. I have a few questions. I
> > would like to know if there is any possibility for meteor server to
> > push data to a single user?
> > In a chat context this would be represented as a private chat. But in
> > a more general context this could for instance be represented by a
> > user with a buddylist getting notifications about what other users in
> > his/hers buddylist are doing at the moment.
> > For instance, user A has user B,C, and D in his buddylist. User B and
> > C are in a private chat and user D is reading a forum post. User A
> > would then be notified about user B, C and D's current activities.
> > Is there anyway that each user could be autosubscribed to a channel
> > consisting of events from users in his buddylist?
> > Hmm, perhaps this comes out a bit confusing....I hope someone
> > understands what I am getting at.
> > If anyone has made a successful example that might resemble what I am
> > looking for please post a link and an explanation.
In either case you'd send a global ping with some response that tells a
given client "hey, you have a message" and then either, in case #1, tell it
to join channel X or, in case #2, tell it to send an ajax request for the
chat decode key so that they can receive the messages.
On Sun, Sep 13, 2009 at 11:45 PM, Bjarman <fredrik.bjar...@gmail.com> wrote:
> Interesting thoughts. How would you suggest that user A will be
> notified of a private chat request from user B?
> My concern is that I would like to enable the push of events
> concerning only a few users, 1to1 or 1to many.
> Hmmm, ...mind boggeling...
> On Sep 13, 7:00 pm, Kevin Peno <kevinp...@gmail.com> wrote:
> > You could do it a couple of ways.
> > The easiest way would be to have each user subscribe to a public
> > notification channel. Then, when they are notified of a private chat,
> they
> > subscribe to the new chat channel for that chat.
> > If you will have a have a high traffic site, this probably will not work
> do
> > to meteor's scaling (it scales well for number of users, but not number
> of
> > channels). You should just have a global chat channel. Then, to keep from
> > snooping, you could encrypt the chat messages and decrypt them on the
> client
> > side. To get the chat convo's cypher key you make an ajax request for it
> on
> > the client side so that it is never sent through the global channel.
> > On Sat, Sep 12, 2009 at 11:50 PM, Bjarman <fredrik.bjar...@gmail.com>
> wrote:
> > > Hello!
> > > I am a complete noob to comet and meteor. I have a few questions. I
> > > would like to know if there is any possibility for meteor server to
> > > push data to a single user?
> > > In a chat context this would be represented as a private chat. But in
> > > a more general context this could for instance be represented by a
> > > user with a buddylist getting notifications about what other users in
> > > his/hers buddylist are doing at the moment.
> > > For instance, user A has user B,C, and D in his buddylist. User B and
> > > C are in a private chat and user D is reading a forum post. User A
> > > would then be notified about user B, C and D's current activities.
> > > Is there anyway that each user could be autosubscribed to a channel
> > > consisting of events from users in his buddylist?
> > > Hmm, perhaps this comes out a bit confusing....I hope someone
> > > understands what I am getting at.
> > > If anyone has made a successful example that might resemble what I am
> > > looking for please post a link and an explanation.