diff --git a/server.go b/server.go index 4b5a82a..51fd3bb 100644 --- a/server.go +++ b/server.go @@ -202,7 +202,7 @@ func (s *Server) OnTraffic(c gnet.Conn) gnet.Action { }) upgraderConn.UpdateActive() case ws.OpClose: - _ = s.closeWS(upgraderConn, ws.StatusNormalClosure, nil) + s.onCloseHandler(upgraderConn, nil) return gnet.Close }