Skip to content

Commit

Permalink
Merge pull request #849 from cloudflare/milan/enable-ws-compression
Browse files Browse the repository at this point in the history
Enable websocket compression compat date
  • Loading branch information
MellowYarker authored Jul 11, 2023
2 parents ee4a7b9 + 203715b commit bd3f367
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/workerd/io/compatibility-date.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,15 @@ struct CompatibilityFlags @0x8f8c1b68151b6cef {
# Obsolete flag. Has no effect.

webSocketCompression @20 :Bool
$compatEnableFlag("web_socket_compression");
$compatEnableFlag("web_socket_compression")
$compatEnableDate("2023-08-15")
$compatDisableFlag("no_web_socket_compression");
# Enables WebSocket compression. Without this flag, all attempts to negotiate compression will
# be refused, so WebSockets will never use compression. With this flag, the system will
# automatically negotiate the use of the permesssage-deflate extension where appropriate.
# The Worker can also request specific compression settings by specifying a valid
# Sec-WebSocket-Extensions header, or setting the header to the empty string to explicitly
# request that no compression be used.
# be refused for scripts prior to the compat date, so WebSockets will never use compression.
# With this flag, the system will automatically negotiate the use of the permessage-deflate
# extension where appropriate. The Worker can also request specific compression settings by
# specifying a valid Sec-WebSocket-Extensions header, or setting the header to the empty string
# to explicitly request that no compression be used.

nodeJsCompat @21 :Bool
$compatEnableFlag("nodejs_compat")
Expand Down

0 comments on commit bd3f367

Please sign in to comment.