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:使用Timeout作为WebSocket超时时间;
off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。 | 
| Long | getTimeout()Get 超时时间,单位为秒,最大超时时间120秒。 | 
| void | setSwitch(String Switch)Set WebSocket 超时时间配置开关,取值有:
on:使用Timeout作为WebSocket超时时间;
off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。 | 
| void | setTimeout(Long Timeout)Set 超时时间,单位为秒,最大超时时间120秒。 | 
| 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 超时时间配置开关,取值有:
public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - 超时时间,单位为秒,最大超时时间120秒。Copyright © 2025. All rights reserved.