Interesting thoughts. How would you suggest that user A will be
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.
>
> Hope that helps some :)
>
> Kevin Peno
> W:
425.582.8139
> C:
425.408.1094
>