Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-10-20 15:59:08 +08:00
8 changed files with 107 additions and 19 deletions

View File

@@ -21,6 +21,9 @@ service websocket {
//关闭某个连接
@handler CloseWebsocketHandler
post /api/websocket/close_websocket(CloseWebsocketReq) returns (response);
//获取ws统计信息
@handler GetStatHandler
get /api/websocket/get_stat(GetStatReq) returns (response);
}
//websocket数据交互[
@@ -46,4 +49,12 @@ type CommonNotifyReq {
//关闭连接
type CloseWebsocketReq {
Wid string `json:"wid"`
}
//获取ws统计信息
type GetStatReq {
Password string `form:"password"`
}
type GetStatRsp {
WsTotalCount int `json:"ws_total_count"` //ws连接数
CurRequestCombineCount int `json:"cur_request_combine_count"`
}