[GH-ISSUE #1236] Enable permessage-deflate (RFC 7692) #873

Closed
opened 2026-05-07 00:28:20 +02:00 by BreizhHardware · 1 comment

Originally created by @bt90 on GitHub (Dec 10, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1236

💡 Idea

WebSocket messages are uncompressed by default, which wastes a lot of bandwidth for text content. RFC 7692 specifies a protocol extension that adds deflate compression. This behavior is strictly opt-in and supported by all major browser vendors.

💻 Target components

Enabling this on the server side should be sufficient: https://pkg.go.dev/github.com/gorilla/websocket#hdr-Compression_EXPERIMENTAL

Originally created by @bt90 on GitHub (Dec 10, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1236 :bulb: **Idea** WebSocket messages are uncompressed by default, which wastes a lot of bandwidth for text content. [RFC 7692](https://datatracker.ietf.org/doc/html/rfc7692) specifies a protocol extension that adds deflate compression. This behavior is strictly opt-in and supported by all major browser vendors. :computer: **Target components** Enabling this on the server side should be sufficient: https://pkg.go.dev/github.com/gorilla/websocket#hdr-Compression_EXPERIMENTAL
BreizhHardware 2026-05-07 00:28:20 +02:00
Author
Owner

@binwiederhier commented on GitHub (Feb 5, 2026):

Thank you for suggesting this, but I don't think I have any interest in adding this.

<!-- gh-comment-id:3850609912 --> @binwiederhier commented on GitHub (Feb 5, 2026): Thank you for suggesting this, but I don't think I have any interest in adding this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#873
No description provided.