Module: Slack::RealTime::Config
- Extended by:
- Config
- Included in:
- Config
- Defined in:
- lib/slack/real_time/config.rb
Defined Under Namespace
Classes: InvalidAsyncHandlersError, NoConcurrencyError
Constant Summary
collapse
- ATTRIBUTES =
%i[
token
websocket_ping
websocket_proxy
concurrency
start_options
store_class
store_options
logger
async_handlers
].freeze
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#concurrency ⇒ Object
37
38
39
|
# File 'lib/slack/real_time/config.rb', line 37
def concurrency
(val = @concurrency).respond_to?(:call) ? val.call : val
end
|
Instance Method Details
#reset ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/slack/real_time/config.rb', line 25
def reset
self.websocket_ping = 30
self.websocket_proxy = nil
self.token = nil
self.concurrency = method(:detect_concurrency)
self.start_options = { request: { timeout: 180 } }
self.store_class = Slack::RealTime::Stores::Starter
self.store_options = {}
self.logger = nil
self.async_handlers = :none
end
|