                 }
                 
             }
-            self.socket.on("disconnect") {data, ack in
+            self.socket!.on("disconnect") {data, ack in
                 if((self.connection.indexForKey(Config.OFFLINE)) != nil){
                     let callBack = self.connection[Config.OFFLINE]!
                     callBack(Config.OFFLINE)
                 }
 
             }
-            self.socket.on(Config.SOCKET_MESSAGE) {data, ack in
+            self.socket!.on(Config.SOCKET_MESSAGE) {data, ack in
                 let response = data[0] as! NSDictionary
                 let type = response.objectForKey("type") as! String
                 let channel: AnyObject? = response.objectForKey("channel")


                }
            }
            self.socket.connect()
        }
        
    }

    Disconnect from exp and remove token
    */
    public func disconnect(){
         self.socket!.close()
    }
    
}