This commit is contained in:
张良(004796)
2023-12-25 14:21:53 +08:00
parent 83cc2da012
commit e00a1638e1
11 changed files with 521 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package com.ruoyi.websocket.constant;
/**
* websocket的常量配置
*
* @author zendwang
*/
public interface WebSocketConstants {
/**
* websocketSession中的参数的key
*/
String LOGIN_USER_KEY = "loginUser";
/**
* 订阅的频道
*/
String WEB_SOCKET_TOPIC = "global:websocket";
/**
* 前端心跳检查的命令
*/
String PING = "ping";
/**
* 服务端心跳恢复的字符串
*/
String PONG = "pong";
}