def receive_data(data)
      @data << data

      return unless data.index("\n\n")
      begin
        result = _receive_data(@data)
      rescue
        raise
        result = nil
      end
      @callback.call(!result.nil?, result) unless @callback.nil?
      @callback = nil
      @available = true
    end
def receive_data(data)
      @data << data

      return unless data.index("\n\n")
      begin
        result = _receive_data(@data)
      rescue
        raise
        result = nil
      end
      @callback.call(!result.nil?, result) unless @callback.nil?
      @callback = nil
      @available = true
    end
This method will be called by EventMachine when data arrived
 then parse given data and execute callback method if exists

 @api private