You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: data_reader.rb
    path of file: ./repos/solargraph/lib/solargraph/language_server/transport
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'json'

module Solargraph
  module LanguageServer
   
    
        def parse_message_from_buffer
          begin
            msg = JSON.parse(@buffer)
            @message_handler.call msg unless @message_handler.nil?
          rescue JSON::ParserError => e
            Solargraph::Logging.logger.warn "Failed to parse request: #{e.message}"
            Solargraph::Logging.logger.debug "Buffer: #{@buffer}"
          ensure
            @buffer.clear
            @in_header = true
            @content_length = 0
          end