From 44acef5d2298c372b12c9d596896de7e119bd615 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Thu, 12 Sep 2024 14:14:23 -0700 Subject: [PATCH] Enable WebSocket compression when available --- pkg/server/client_websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/client_websocket.go b/pkg/server/client_websocket.go index d58f3f6..b27b17f 100644 --- a/pkg/server/client_websocket.go +++ b/pkg/server/client_websocket.go @@ -15,6 +15,7 @@ import ( var acceptOptions = &websocket.AcceptOptions{ InsecureSkipVerify: true, + CompressionMode: websocket.CompressionContextTakeover, } var _ bgammon.Client = &webSocketClient{}