Class: TencentCloud::Teo::V20220901::WebSocket
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::WebSocket
- Defined in:
- lib/v20220901/models.rb
Overview
WebSocket配置
Instance Attribute Summary collapse
-
#Switch ⇒ Object
<li>on:使用Timeout作为WebSocket超时时间;</li> <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>.
-
#Timeout ⇒ Object
<li>on:使用Timeout作为WebSocket超时时间;</li> <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, timeout = nil) ⇒ WebSocket
constructor
A new instance of WebSocket.
Constructor Details
#initialize(switch = nil, timeout = nil) ⇒ WebSocket
Returns a new instance of WebSocket.
23052 23053 23054 23055 |
# File 'lib/v20220901/models.rb', line 23052 def initialize(switch=nil, timeout=nil) @Switch = switch @Timeout = timeout end |
Instance Attribute Details
#Switch ⇒ Object
<li>on:使用Timeout作为WebSocket超时时间;</li> <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
23050 23051 23052 |
# File 'lib/v20220901/models.rb', line 23050 def Switch @Switch end |
#Timeout ⇒ Object
<li>on:使用Timeout作为WebSocket超时时间;</li> <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
23050 23051 23052 |
# File 'lib/v20220901/models.rb', line 23050 def Timeout @Timeout end |
Instance Method Details
#deserialize(params) ⇒ Object
23057 23058 23059 23060 |
# File 'lib/v20220901/models.rb', line 23057 def deserialize(params) @Switch = params['Switch'] @Timeout = params['Timeout'] end |