mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 15:05:01 +08:00
发布v2.3.5版本,本次为优化版本。更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -38,11 +38,11 @@ func WebSocket(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
|
||||
// 注册消息路由
|
||||
websocket.RegisterMsg(websocket.EventHandlers{
|
||||
"ping": common.Site.Ping, // 心跳
|
||||
"join": common.Site.Join, // 加入组
|
||||
"quit": common.Site.Quit, // 退出组
|
||||
"adminMonitorTrends": admin.Monitor.Trends, // 后台监控,动态数据
|
||||
"adminMonitorRunInfo": admin.Monitor.RunInfo, // 后台监控,运行信息
|
||||
"ping": common.Site.Ping, // 心跳
|
||||
"join": common.Site.Join, // 加入组
|
||||
"quit": common.Site.Quit, // 退出组
|
||||
"admin/monitor/trends": admin.Monitor.Trends, // 后台监控,动态数据
|
||||
"admin/monitor/runInfo": admin.Monitor.RunInfo, // 后台监控,运行信息
|
||||
})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user