def send(command, *parameters, &block)
      socket = TCPSocket.open(host, port)
      socket.puts command_json(command, *parameters)

      parse(socket.gets, &block)
    ensure
      socket.close if socket.respond_to?(:close)
    end
def send(command, *parameters, &block)
      socket = TCPSocket.open(host, port)
      socket.puts command_json(command, *parameters)

      parse(socket.gets, &block)
    ensure
      socket.close if socket.respond_to?(:close)
    end
Sends the supplied `command` with optionally supplied `parameters` to the
 service and returns the result, if any.

 **Note:** Since `Object#send` is overridden, use `Object#__send__` to call
 an actual method.

 @param [Symbol, String] command
   The command to send to the service.

 @param [Array] parameters
   Optional parameters to send to the service.

 @return [Response]
   The service's response.