def METHOD_NAME(self):
    connected, connection_error, pid = self.is_server_alive()
    if not connected:
        logger.error("The client was unable to establish a connection "
                     "with the Language Server. The error was: "
                     "{}".format(connection_error))
        raise Exception("An error occurred while trying to create a "
                        "client to connect to the Language Server! The "
                        "error was\n\n{}".format(connection_error))
    logger.info('Starting ZMQ connection...')
    self.context = zmq.Context()
    self.zmq_in_socket = self.context.socket(zmq.PAIR)
    self.zmq_in_socket.connect("tcp://{0}:{1}".format(
        LOCALHOST, self.zmq_in_port))
    self.zmq_out_socket = self.context.socket(zmq.PAIR)
    self.zmq_out_socket.connect("tcp://{0}:{1}".format(
        LOCALHOST, self.zmq_out_port))
    logger.info('Sending server_ready...')
    self.zmq_out_socket.send_pyobj({'id': 0, 'method': 'server_ready',
                                    'params': {'pid': pid}})