Reputation: 29
We are implementing a chat application using Pubnub and in a short span of time, the number of channels for each user has reached into hundreds. In order to improve performance, I need the listChannels method to return channels in the most recently used first order rather alphabetical order which is of not much use to me.
I am hitting one roadblock after another and I very seriously considering ditching Pubnub altogether as it is creating more problems than solving them for me. Please help me with this.
Upvotes: 2
Views: 42
Reputation: 4738
Channel Groups were not implemented with what you had in mind. But you can keep a local list most active channels. Everytime the user publishes to a channel or receives a message or whatever your requirements are, just update this list.
Upvotes: 1