Hi,

I am building a chat application which uses PubNub for message 
communication - www.pubnub.com, and would like to build a directive which 
self contains each chat conversation and channel. PubNub supports 
multiplexing which means you can connect to multiple channels with one 
call, and receive messages to one central callback.  This is great however 
it means that the message distribution would then need to managed by a 
master controller for all channels.  I was wondering if a better approach 
would be to setup the channel subscribe for each channel within a 
directive, so that each instance of the chat could be encapsulated with 
it's own callback and functions.  Has anyone built anything like this 
before, and can you recommend any best practices for this type of use case? 
 The app is not like your typical "chat room" where you enter and leave a 
single channel/room.  Rather, there are multiple conversations on the 
screen at once, each connected to an individual channel.

Thanks.

Nolan

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to