Module: OMQ::Transport::WebSocket::OptionsExt
- Defined in:
- lib/omq/transport/websocket/options_ext.rb
Overview
Prepended onto OMQ::Options at require time. Adds the per-socket knobs needed by ws:// and wss://.
Constant Summary collapse
- DEFAULT_SUBPROTOCOLS =
%w[ZWS2.0/NULL ZWS2.0].freeze
- DEFAULT_PATH =
"/"
Instance Attribute Summary collapse
-
#tls_context ⇒ Object
Returns the value of attribute tls_context.
-
#ws_path ⇒ Object
Returns the value of attribute ws_path.
-
#ws_subprotocols ⇒ Object
Returns the value of attribute ws_subprotocols.
Instance Method Summary collapse
Instance Attribute Details
#tls_context ⇒ Object
Returns the value of attribute tls_context.
14 15 16 |
# File 'lib/omq/transport/websocket/options_ext.rb', line 14 def tls_context @tls_context end |
#ws_path ⇒ Object
Returns the value of attribute ws_path.
16 17 18 |
# File 'lib/omq/transport/websocket/options_ext.rb', line 16 def ws_path @ws_path end |
#ws_subprotocols ⇒ Object
Returns the value of attribute ws_subprotocols.
15 16 17 |
# File 'lib/omq/transport/websocket/options_ext.rb', line 15 def ws_subprotocols @ws_subprotocols end |
Instance Method Details
#initialize ⇒ Object
19 20 21 22 23 24 |
# File 'lib/omq/transport/websocket/options_ext.rb', line 19 def initialize(*, **) super @tls_context = nil @ws_subprotocols = DEFAULT_SUBPROTOCOLS @ws_path = DEFAULT_PATH end |