This commit is contained in:
2025-06-29 10:39:00 +08:00
parent 605197345b
commit b45eb83fe4
15 changed files with 597 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ func (s *WSServer) OnClose(c gnet.Conn, err error) (action gnet.Action) {
ws, ok := c.Context().(*WSConn)
if ok {
ws.isClose = true
ws.logger.Warnf("connection close: %v --------------------------------------------------", err)
ws.logger.Warnf("connection close, err: %v", err)
return gnet.Action(s.i.OnClose(ws, err))
}
return