public class WebSocketParameters extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| WebSocketParameters() | 
| WebSocketParameters(WebSocketParameters 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 秒。 注意:当 Switch 为 on 时,此字段必填,否则此字段不生效。 | 
| void | setSwitch(String Switch)Set WebSocket 超时时间配置开关,取值有:
on:使用 Timeout 作为 WebSocket 超时时间;
off:平台仍支持 WebSocket 连接,此时使用系统默认的 15 秒为超时时间。 | 
| void | setTimeout(Long Timeout)Set 超时时间,单位为秒,最大超时时间 120 秒。 注意:当 Switch 为 on 时,此字段必填,否则此字段不生效。 | 
| 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 WebSocketParameters()
public WebSocketParameters(WebSocketParameters 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.