Class: Hyperion::Config::WebSocketConfig
- Inherits:
-
Object
- Object
- Hyperion::Config::WebSocketConfig
- Defined in:
- lib/hyperion/config.rb
Overview
2.3-C: WebSocket subconfig. The headline knob is ‘permessage_deflate` — RFC 7692 per-message DEFLATE compression for the WS payload. Tri-state, mirrors `tls.ktls`:
:off — never advertise the extension.
:auto — accept if the client offers it (default; backwards
compatible with clients that don't offer it).
:on — require it; reject the handshake (400) if the client
doesn't offer a usable variant.
Constant Summary collapse
- ATTRS =
%i[permessage_deflate].freeze
- DEFAULT_PERMESSAGE_DEFLATE =
:auto
Instance Method Summary collapse
-
#initialize ⇒ WebSocketConfig
constructor
A new instance of WebSocketConfig.
Constructor Details
#initialize ⇒ WebSocketConfig
Returns a new instance of WebSocketConfig.
171 172 173 |
# File 'lib/hyperion/config.rb', line 171 def initialize @permessage_deflate = DEFAULT_PERMESSAGE_DEFLATE end |