diff --git a/common/coder.go b/common/coder.go index 7cdd7b96f1c2bd0dcd2f7f1ee0aac4c8fa257da9..ca331b9dd4e735c09b010cffae05c1b73e7fa067 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 86d9d510d7d7b36fbca9824a0917b4b3a20350f9..2e225fa3ff8e7dce49933f9082e5034f61b674fd 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) }