def recv_from_gh_client(socket):
    """Connect, receive, and decode data received from socket to a list.

    Arguments:
        socket -- A socket.socket() object to receive data.

    Returns:
        return_lst -- A list of floats sent from Grasshopper.
    """

    socket.listen()
    conn, _ = socket.accept()
    with conn:
        return_byt = conn.recv(1024)
    return_str = return_byt.decode()
    return_lst = [ float(value) for value in return_str.split()]

    return return_lst