In PubNub JavaScript v3, you could implement a unique callback for every channel that you subscribed to as long as you called the subscribe function for each channel and implemented the callback in that subscribe like this:
var pubnub = new PubNub({
publishKey: "your-pub-key",
s...