diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index 49e81fe0..0a043c6e 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -49,7 +49,8 @@ var ( CheckOrigin: func(r *http.Request) bool { return true }, - WriteBufferPool: &buffPool, + WriteBufferPool: &buffPool, + EnableCompression: true, } //连接map池 mapConnPool = sync.Map{}