BetterWebSocketApi class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isStopSocket → bool
-
no setter
- receiveDataCallback ↔ ValueChanged?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
socketStateCallback
↔ ValueChanged<
BetterWebSocketConnectState> ? -
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendData(
dynamic data) → bool -
startWebSocketConnect(
String url, {int? retryCount, Duration? retryDuration, ValueChanged< int> ? retryCallback, Duration? pingInterval, Iterable<String> ? protocols, Map<String, dynamic> ? headers, CompressionOptions compression = CompressionOptions.compressionDefault, String? proxy}) → dynamic - 启动WebSocket连接
-
stopWebSocketConnect(
) → dynamic - 中断WebSocket连接
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited