io.github.hison.api.caching.WebSocketConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-link Show documentation
Show all versions of api-link Show documentation
API-Link is a novel solution for Spring projects, aimed at streamlining development by eliminating the need for individual controllers. It allows developers to use a single 'cmd' value to invoke service layer methods, simplifying workflow and boosting productivity.
The newest version!
package io.github.hison.api.caching;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
/**
* @author Hani son
* @version 1.0.0
*/
public class WebSocketConfig implements WebSocketConfigurer {
private final CachingWebSocketSessionManager sessionManager = CachingWebSocketSessionManager.getInstance();
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(new WebSocketHandler(sessionManager), sessionManager.getEndPoint());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy