Configure the client and channel group with a set of channels.
Click to copy the blue snippets and then paste them into your code.import UIKit import PubNub import PubNubBridge @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? var client: PubNub? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { self.client = PubNub.client() self.client?.addChannels(["announcements", "lobby"], toGroup: "tradeshow", withCompletion: {[weak self] (status) -> Void in }) return true } }