Skip to content

Commit

Permalink
feat: Add channel disbandment reason code
Browse files Browse the repository at this point in the history
  • Loading branch information
tangtaoit committed Apr 29, 2024
1 parent e0911b8 commit 52b7b1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const (
ReasonClientKeyIsEmpty // clientKey 是空的
ReasonRateLimit // 速率限制
ReasonNotSupportChannelType // 不支持的频道类型
ReasonDisband // 频道已解散
)

func (r ReasonCode) String() string {
Expand Down Expand Up @@ -232,6 +233,8 @@ func (r ReasonCode) String() string {
return "ReasonClientKeyIsEmpty"
case ReasonRateLimit:
return "ReasonRateLimit"
case ReasonDisband:
return "ReasonDisband"
}
return fmt.Sprintf("UNKNOWN[%d]", r)
}
Expand Down

0 comments on commit 52b7b1b

Please sign in to comment.