Skip to content

Instantly share code, notes, and snippets.

@sferoze
Created July 22, 2015 13:46
Show Gist options
  • Save sferoze/830aa63aabb07d81acc4 to your computer and use it in GitHub Desktop.
Save sferoze/830aa63aabb07d81acc4 to your computer and use it in GitHub Desktop.
Showing the AppDelegate integrating Meteor DDP package
import UIKit
import CoreData
import Meteor
let Meteor = METCoreDataDDPClient(serverURL: NSURL(string: "wss://stridepost.meteor.com/websocket"))
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
Meteor.connect()
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment