 
 import UIKit
 
+enum AppEvents: String, Printable {
+    case TicketCall = "TicketCall"
+    
+    var description: String {
+        return self.rawValue
+    }
+}
+
 class TicketsViewController: PageViewController {
     
     let tableView = UITableView()
     let ticketCellIdentifier = "TicketCell"
-    let items = ["A", "B" , "C"]
+    var items = ["A", "B" , "C"]
+    
+    let socket = SocketIO<AppEvents>(url: "http://smartime.herokuapp.com")
     
     init() {
         super.init(nibName: nil, bundle: nil)

        else {
            cell.contentView.backgroundColor = UIColor(rgba: "#00B9DC")
        }
    }
    
    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

    
    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        // Select row
        items.append("D")
        tableView.deselectRowAtIndexPath(indexPath, animated: true)
        
        //tableView.beginUpdates()
        //tableView.reloadRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.None)
        //tableView.endUpdates()
        
        tableView.reloadData()
    }
    
}
