@Override
    protected Map<String, Object> getBeans(final ApplicationContext context) {
        // Filter out is not controller out
        if (Boolean.TRUE.equals(isFull)) {
            LOG.info("init spring websocket client success with isFull mode");
            List<String> namespaceIds = super.getNamespace();
            namespaceIds.forEach(namespaceId -> publisher.publishEvent(buildURIRegisterDTO(context, Collections.emptyMap(), namespaceId)));
            return Collections.emptyMap();
        }
        Map<String, Object> endpointBeans = context.getBeansWithAnnotation(ShenyuServerEndpoint.class);
        registerEndpointsBeans(context, endpointBeans);
        return context.getBeansWithAnnotation(ShenyuSpringWebSocketClient.class);
    }
Instantiates a new Spring websocket client event listener.

@param clientConfig                   the client config
@param shenyuClientRegisterRepository the shenyu client register repository
shenyu-client/shenyu-client-websocket/shenyu-client-spring-websocket/src/main/java/org/apache/shenyu/client/spring/websocket/init/SpringWebSocketClientEventListener.java