class SocketdProxy {
    public static final ToHandlerListener socketdToHandler = new ToHandlerListener();

    /**
     * 创建接口代理
     */
    public static <T> T create(String url, Class<T> clz) throws Exception {<FILL_FUNCTION_BODY>}

    /**
     * 创建接口代理
     */
    public static <T> T create(ClientSession session, Class<T> clz) {
        return ProxyUtils.create(() -> session, null, null, clz);
    }

    /**
     * 创建接口代理
     */
    public static <T> T create(Context ctx, Class<T> clz) {
        if (ctx.response() instanceof Session) {
            return create((Session) ctx.response(), clz);
        } else {
            return create((Session) ctx.request(), clz);
        }
    }
}

        ClientSession session;
        if (url.contains(",")) {
            session = SocketD.createClusterClient(url.split(","))
                    .listen(socketdToHandler)
                    .openOrThow();
        } else {
            session = SocketD.createClient(url)
                    .listen(socketdToHandler)
                    .openOrThow();
        }

        return ProxyUtils.create(() -> session, null, null, clz);
    
<no_super_class>