public class WebSocket extends AbstractModel
| Constructor and Description | 
|---|
| WebSocket() | 
| WebSocket(WebSocket source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getSwitch()Get Whether to enable custom WebSocket timeout setting. | 
| Long | getTimeout()Get Sets the timeout period in seconds. | 
| void | setSwitch(String Switch)Set Whether to enable custom WebSocket timeout setting. | 
| void | setTimeout(Long Timeout)Set Sets the timeout period in seconds. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic WebSocket()
public WebSocket(WebSocket source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable custom WebSocket timeout setting. When it’s `off`: WebSocket connection is supported, and the default timeout period is 15 seconds. To change the timeout period, please set it to `on`.
 WebSocket is now only available for beta users. To use it, please submit a ticket.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - Sets the timeout period in seconds. Maximum value: 65.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.