WebSocketOptions class
WebSocket 连接选项
Constructors
Properties
- autoReconnect → bool
-
是否自动重连
final
- connectTimeout → Duration?
-
连接超时
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
自定义请求头
final
- maxReconnectAttempts → int
-
最大重连次数
final
- pingInterval → Duration?
-
Ping 间隔
final
-
protocols
→ List<
String> ? -
子协议
final
- reconnectInterval → Duration
-
重连间隔
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited