Class: WSocketIO::Options
- Inherits:
-
Struct
- Object
- Struct
- WSocketIO::Options
- Defined in:
- lib/wsocket_io.rb
Instance Attribute Summary collapse
-
#auto_reconnect ⇒ Object
Returns the value of attribute auto_reconnect.
-
#max_reconnect_attempts ⇒ Object
Returns the value of attribute max_reconnect_attempts.
-
#reconnect_delay ⇒ Object
Returns the value of attribute reconnect_delay.
-
#recover ⇒ Object
Returns the value of attribute recover.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(auto_reconnect: true, max_reconnect_attempts: 10, reconnect_delay: 1.0, token: nil, recover: true) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(auto_reconnect: true, max_reconnect_attempts: 10, reconnect_delay: 1.0, token: nil, recover: true) ⇒ Options
Returns a new instance of Options.
43 44 45 |
# File 'lib/wsocket_io.rb', line 43 def initialize(auto_reconnect: true, max_reconnect_attempts: 10, reconnect_delay: 1.0, token: nil, recover: true) super end |
Instance Attribute Details
#auto_reconnect ⇒ Object
Returns the value of attribute auto_reconnect
42 43 44 |
# File 'lib/wsocket_io.rb', line 42 def auto_reconnect @auto_reconnect end |
#max_reconnect_attempts ⇒ Object
Returns the value of attribute max_reconnect_attempts
42 43 44 |
# File 'lib/wsocket_io.rb', line 42 def max_reconnect_attempts @max_reconnect_attempts end |
#reconnect_delay ⇒ Object
Returns the value of attribute reconnect_delay
42 43 44 |
# File 'lib/wsocket_io.rb', line 42 def reconnect_delay @reconnect_delay end |
#recover ⇒ Object
Returns the value of attribute recover
42 43 44 |
# File 'lib/wsocket_io.rb', line 42 def recover @recover end |
#token ⇒ Object
Returns the value of attribute token
42 43 44 |
# File 'lib/wsocket_io.rb', line 42 def token @token end |