115116117118119120121
return result; } public static <T> T createRemoteServiceByWebSocket(Class<T> type) { return (T) Proxy.newProxyInstance(RequestExecutorImpl.class.getClassLoader(), new Class[] { type }, new ClientToServerServiceInvocationHandler(type)); }