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 超时配置开关,取值有:
on:开启,可以调整超时时间
off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒 | 
| Long | getTimeout()Get 设置超时时间,单位为秒,最大超时时间300秒。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSwitch(String Switch)Set WebSocket 超时配置开关,取值有:
on:开启,可以调整超时时间
off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒 | 
| void | setTimeout(Long Timeout)Set 设置超时时间,单位为秒,最大超时时间300秒。
注意:此字段可能返回 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 超时配置开关,取值有:
on:开启,可以调整超时时间
off:关闭,平台仍支持WebSocket连接,此时超时时间默认为15秒public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 设置超时时间,单位为秒,最大超时时间300秒。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.