Skip to content

Commit

Permalink
enh: enable websocket compression
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Feb 28, 2024
1 parent f714e6d commit 88664f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/ws/ws/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (ws *webSocketCtl) Init(ctl gin.IRouter) {
func initController() *webSocketCtl {
m := melody.New()
m.Config.MaxMessageSize = 0
m.UpGrader.EnableCompression = true

m.HandleConnect(func(session *melody.Session) {
logger.Debugln("ws connect")
Expand Down

0 comments on commit 88664f9

Please sign in to comment.