Class: Hyperion::Config::WebSocketConfig

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeWebSocketConfig

Returns a new instance of WebSocketConfig.



171
172
173
# File 'lib/hyperion/config.rb', line 171

def initialize
  @permessage_deflate = DEFAULT_PERMESSAGE_DEFLATE
end