fusenapi/constants/websocket.go

19 lines
398 B
Go
Raw Normal View History

2023-07-24 11:44:28 +00:00
package constants
type websocket string
// websocket消息类型
const (
2023-07-25 04:06:19 +00:00
//鉴权失败
WEBSOCKET_UNAUTH = "unAuth"
2023-07-24 11:44:28 +00:00
//ws连接成功
WEBSOCKET_CONNECT_SUCCESS = "connect-success"
2023-07-25 04:06:19 +00:00
//心跳信息
WEBSOCKET_HEARTBEAT = "heartbeat"
2023-07-24 11:44:28 +00:00
//图片渲染
WEBSOCKET_RENDER_IMAGE = "render-image"
)
2023-07-25 09:41:38 +00:00
// 云渲染通知需要的签名字符串
const RENDER_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"