 
     private var pendingChannelSubscriptionSet: Set<String> = []
     private var openChannelSubscriptionSet: Set<String> = []
-    private var subscribedChannels: [String: AnyObject] = [:]
+    private var subscribedChannels: [String: FayeClientSubscriptionHandler] = [:]
     private var privateChannels: [String: FayeClientPrivateHandler] = [:]
     private var channelExtensions: [String: AnyObject] = [:]
 

                    didFailWithMessage(message)
                }


            default:
                break
            }
        })

    }
}


    func fayeClient(client: FayeClient, didReceiveMessage messageInfo: [String: AnyObject], fromChannel channel: String)
}

public typealias FayeClientSubscriptionHandler = (message: [String: AnyObject]) -> Void
public typealias FayeClientPrivateHandler = (message: FayeMessage) -> Void

public class FayeClient: NSObject {
