                 client.setExtension(extensionData, forChannel: personalChannel)
                 client.connect()
                 client.subscribeToChannel(personalChannel)
-
 
         } else {
             println("FayeClient start failed!!!!")

            let userID = YepUserDefaults.userID() {
                let extensionData = [
                    "access_token": v1AccessToken,
                    "mobile": "18620855007",
                    "phone_code": "86"
                ]

                let personalChannel = personalChannelWithUserID(userID)

//  Copyright (c) 2015年 Catch Inc. All rights reserved.
//

import Foundation
import MZFayeClient

class FayeService: NSObject, MZFayeClientDelegate {
