Created
July 22, 2015 13:46
-
-
Save sferoze/830aa63aabb07d81acc4 to your computer and use it in GitHub Desktop.
Showing the AppDelegate integrating Meteor DDP package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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