         
         // Reactive
         sourceSignal.start(next: { data in
-            self.items = data.map { $0 as TicketViewModel }
+            self.dataSource.items = data.map { $0 as TicketViewModel }
             self.tableView.reloadData()
             self.scrollToBottom()
         })

class TicketsViewController: SlidePageViewController {
    
    let tableView = TicketsTableView()
    let ticketCellIdentifier = "TicketCell"
    var items = []
    
    let sourceSignal: SignalProducer<[TicketViewModel], NoError>
    
    let socket = SocketIO<AppEvents>(url: "http://smartime.herokuapp.com")
    
    init(slider: SliderController) {
        sourceSignal = slider.viewModel.ticketItems.producer
        // Reactive signal
        super.init(slider: slider, nibName: nil, bundle: nil)
        tableView.dataSource = self
        tableView.delegate = self
        tableView.separatorStyle = UITableViewCellSeparatorStyle.None
        tableView.showsVerticalScrollIndicator = false
        

    }
    
    func scrollToBottom() {
        if dataSource.items.count > 0 {
            tableView.scrollToRowAtIndexPath(NSIndexPath(forRow: dataSource.items.count-1, inSection: 0), atScrollPosition: .Bottom, animated: true)
        }
    }
    
