 private let FayeClientBayeuxMessageSupportedConnectionTypesKey = "supportedConnectionTypes"
 private let FayeClientBayeuxMessageConnectionTypeKey = "connectionType"
 
+private let FayeClientWebSocketErrorDomain = "com.nixWork.FayeClient.Error"
+
 // MARK: - Bayeux procotol messages
 
 extension FayeClient {


        writeMessage(message)
    }
}

// MARK: - SRWebSocket

            completion?(finish: false)
        }
    }

    func didFailWithMessage(message: String) {

        let error = NSError(domain: FayeClientWebSocketErrorDomain, code: -100, userInfo: [NSLocalizedDescriptionKey: message])
        delegate?.fayeClient(self, didFailWithError: error)
    }
}

