         hubManager.actionRegistry.register(TodoListActionFactory(), forNamespace: TodoListActionFactory.namespace)
     }
     
+    private func startLiveService() {
+        #if DEBUG
+        hubManager.liveService?.delegate = self
+        hubManager.liveService?.start(onPort: 7777)
+        #endif
+    }
+    
     // MARK: - Opening view URIs
     
     @discardableResult private func open(viewURI: URL, animated: Bool) -> Bool {

        registerPrettyPicturesFeature()
        registerReallyLongListFeature()
        registerTodoListFeature()
        
        return true
    }
    
    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        return open(viewURI: url, animated: true)
    }
    
    // MARK: - Private

import HubFramework

/// The delegate of the application
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, HUBLiveServiceDelegate {
    var window: UIWindow?
    var navigationController: UINavigationController?
    var hubManager: HUBManager!
    
    // MARK: - UIApplicationDelegate

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        let window = UIWindow(frame: UIScreen.main.bounds)
        
        self.window = window
        navigationController = UINavigationController()
        
        hubManager = makeHubManager()
        
        window.rootViewController = navigationController
        window.makeKeyAndVisible()
        
