fusenapi/constants/websocket.go
laodaming 3deda93e7e fix
2023-07-26 16:47:53 +08:00

21 lines
517 B
Go

package constants
type websocket string
// websocket消息类型
const (
//鉴权失败
WEBSOCKET_UNAUTH = "WEBSOCKET_UNAUTH"
//ws连接成功
WEBSOCKET_CONNECT_SUCCESS = "WEBSOCKET_CONNECT_SUCCESS"
//心跳信息
WEBSOCKET_HEARTBEAT = "WEBSOCKET_HEARTBEAT"
//图片渲染
WEBSOCKET_RENDER_IMAGE = "WEBSOCKET_RENDER_IMAGE"
//数据格式错误
WEBSOCKET_ERR_DATA_FORMAT = "WEBSOCKET_ERR_DATA_FORMAT"
)
// 云渲染通知需要的签名字符串
const RENDER_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"