         return webSocketClosed
     }
 
-    public init() {
-
+    public override init() {
+        super.init()
     }
 
     public convenience init(serverURL: NSURL) {


public typealias FayeClientPrivateHandler = (message: FayeMessage) -> Void

public class FayeClient {

    public private(set) var webSocket: SRWebSocket?
    public private(set)var serverURL: NSURL!

        reconnect()
    }

    public func webSocket(webSocket: SRWebSocket!, didCloseWithCode code: Int, reason: String!, wasClean: Bool) {

        connected = false

        clearSubscriptions()

        let error = NSError(domain: FayeClientWebSocketErrorDomain, code: code, userInfo: [NSLocalizedDescriptionKey: reason])
        delegate?.fayeClient(self, didDisconnectWithError: error)

        reconnect()
    }
}

