fixed conflicts

This commit is contained in:
RockYang
2024-05-06 14:44:09 +08:00
31 changed files with 289 additions and 172 deletions

View File

@@ -144,6 +144,7 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
for {
_, msg, err := client.Receive()
if err != nil {
logger.Debugf("close connection: %s", client.Conn.RemoteAddr())
client.Close()
h.App.ChatClients.Delete(sessionId)
h.App.ChatSession.Delete(sessionId)