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 Whether to enable custom WebSocket timeout setting.
|
Long |
getTimeout()
Get Sets timeout period in seconds.
|
void |
setSwitch(String Switch)
Set Whether to enable custom WebSocket timeout setting.
|
void |
setTimeout(Long Timeout)
Set Sets timeout period in seconds.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public 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`: it means to keep the default WebSocket connection timeout period, which is 15 seconds. To change the timeout period, please set it to `on`.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- Sets timeout period in seconds. Maximum value: 120Copyright © 2024. All rights reserved.