From 5dd228a41529d7e174c059e465b52eac1d8f1e5b Mon Sep 17 00:00:00 2001
From: Anmol Sethi <hi@nhooyr.io>
Date: Thu, 28 Sep 2023 08:14:30 -0700
Subject: [PATCH] compress.go: Add back comment about Safari compat layer being
 disabled

---
 compress.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/compress.go b/compress.go
index 6873447..a9e1fa3 100644
--- a/compress.go
+++ b/compress.go
@@ -12,6 +12,12 @@ import (
 
 // CompressionMode represents the modes available to the deflate extension.
 // See https://tools.ietf.org/html/rfc7692
+//
+// A compatibility layer is implemented for the older deflate-frame extension used
+// by safari. See https://tools.ietf.org/html/draft-tyoshino-hybi-websocket-perframe-deflate-06
+// It will work the same in every way except that we cannot signal to the peer we
+// want to use no context takeover on our side, we can only signal that they should.
+// But it is currently disabled due to Safari bugs. See https://github.com/nhooyr/websocket/issues/218
 type CompressionMode int
 
 const (
-- 
GitLab