mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-18 17:48:03 +08:00
v1.30.0.RC up
This commit is contained in:
@@ -12,7 +12,7 @@ import org.springframework.web.socket.handler.TextWebSocketHandler;
|
||||
* 处理 WebSocket 连接
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class MyWebSocketHandler extends TextWebSocketHandler {
|
||||
|
||||
|
@@ -9,7 +9,7 @@ import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry
|
||||
* WebSocket 相关配置
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
@Configuration
|
||||
@EnableWebSocket
|
||||
|
@@ -13,7 +13,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
* WebSocket 握手的前置拦截器
|
||||
*
|
||||
* @author kong
|
||||
* @date: 2022-2-11
|
||||
* @since: 2022-2-11
|
||||
*/
|
||||
public class WebSocketInterceptor implements HandshakeInterceptor {
|
||||
|
||||
|
Reference in New Issue
Block a user