lib/solargraph/language_server/host.rb
# Send a notification to the client.
#
# @param method [String] The message method
# @param params [Hash] The method parameters
# @return [void]
Send a notification to the client.
Send a notification to the client .
def send_notification method, params
        response = {
          jsonrpc: "2.0",
          method: method,
          params: params
        }
        json = response.to_json
        envelope = "Content-Length: #{json.bytesize}\r\n\r\n#{json}"
        queue envelope
        logger.info "Server sent #{method}"
        logger.debug params
      end
def send_notification method , params response = { jsonrpc : "2.0" , method : method , params : params } json = response . to_json envelope = "Content-Length: #{json.bytesize}\r\n\r\n#{json}" queue envelope logger . info "Server sent #{method}" logger . debug params end
Send a notification to the client.
Send a notification to the client .
None
void
method
The message method
The message method
params
The method parameters
The method parameters