       // Handle Meta Channels
       if let metaChannel = BayeuxChannel(rawValue: channel) {
         switch(metaChannel) {
-        case .HANDSHAKE_CHANNEL:
+        case .Handshake:
           self.fayeClientId = messageDict["clientId"].stringValue
           if messageDict["successful"].int == 1 {
             self.delegate?.connectedToServer(self)

          } else {
            // OOPS
          }
        case .CONNECT_CHANNEL:
          if messageDict["successful"].int == 1 {
            self.fayeConnected = true;
            self.connect()
          } else {
            // OOPS
          }
        case .DISCONNECT_CHANNEL:
          if messageDict["successful"].int == 1 {
            self.fayeConnected = false;
            self.transport?.closeConnection()

  // "channel": "/meta/disconnect",
  // "clientId": "Un1q31d3nt1f13r"
  func disconnect() {
    let dict:[String:AnyObject] = ["channel": BayeuxChannel.Disconnect.rawValue, "clientId": self.fayeClientId!, "connectionType": "websocket"]
    if let string = JSON(dict).rawString() {
      self.transport?.writeString(string)
    }
