Skip to content

Commit 5af2485

Browse files
committed
compress.go: Add back comment about Safari compat layer being disabled
1 parent 260b77f commit 5af2485

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compress.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ import (
1212

1313
// CompressionMode represents the modes available to the deflate extension.
1414
// See https://tools.ietf.org/html/rfc7692
15+
//
16+
// A compatibility layer is implemented for the older deflate-frame extension used
17+
// by safari. See https://tools.ietf.org/html/draft-tyoshino-hybi-websocket-perframe-deflate-06
18+
// It will work the same in every way except that we cannot signal to the peer we
19+
// want to use no context takeover on our side, we can only signal that they should.
20+
// But it is currently disabled due to Safari bugs. See https://github.com/nhooyr/websocket/issues/218
1521
type CompressionMode int
1622

1723
const (

0 commit comments

Comments
 (0)