From 7d2b987853bf11240f5932e7d774cb62cfc2b667 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 25 Jul 2023 11:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BA=A6=E4=BD=8D=E5=8F=98=E5=8C=96=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/coder.go | 1 + main.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/coder.go b/common/coder.go index 7cdd7b9..ca331b9 100644 --- a/common/coder.go +++ b/common/coder.go @@ -72,6 +72,7 @@ const ( MsgTypeEnterRoom = 152 // 用户进房 MsgTypeLeaveRoom = 153 // 用户离房 MsgTypeRoomHeartbeat = 154 // 房间心跳 + MsgTypeGroupMicChangeRsp = 156 // 麦位变化确认 ) const ( diff --git a/main.go b/main.go index 86d9d51..2e225fa 100644 --- a/main.go +++ b/main.go @@ -253,6 +253,8 @@ func serverWebsocket(w http.ResponseWriter, r *http.Request) { if err := processRoomHeartbeat(logger, ci.Uid, pbData); err != nil { logger.Errorf("processRoomHeartbeat fail:%v", err) } + } else if msgType == common.MsgTypeGroupMicChangeRsp { + logger.Infof("common.MsgTypeGroupMicChangeRsp arrive") } else { logger.Warnf("Unknown message type %d", msgType) } -- 2.22.0