public class WebSocket extends AbstractModel
header, skipSign| 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 WebSocket 超时配置开关, 开关为off时,平台仍支持WebSocket连接,此时超时时间默认为15秒,若需要调整超时时间,将开关置为on. | 
| Long | getTimeout()Get 设置超时时间,单位为秒,最大超时时间65秒。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSwitch(String Switch)Set WebSocket 超时配置开关, 开关为off时,平台仍支持WebSocket连接,此时超时时间默认为15秒,若需要调整超时时间,将开关置为on. | 
| void | setTimeout(Long Timeout)Set 设置超时时间,单位为秒,最大超时时间65秒。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic WebSocket()
public WebSocket(WebSocket source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - WebSocket 超时配置开关, 开关为off时,平台仍支持WebSocket连接,此时超时时间默认为15秒,若需要调整超时时间,将开关置为on.
 WebSocket 为内测功能,如需使用,请联系腾讯云工程师开白.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 设置超时时间,单位为秒,最大超时时间65秒。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.