def distribute_results!
      response = JSON.parse(@socket.readline)

      if response["event"]
        @event_queue << response
      else
        @result_queue << response
      end
    rescue StandardError
      @alive = false
      Thread.exit
    end
def distribute_results!
      response = JSON.parse(@socket.readline)

      if response["event"]
        @event_queue << response
      else
        @result_queue << response
      end
    rescue StandardError
      @alive = false
      Thread.exit
    end
Distributes results to the event and result queues.
 @api private