FlutterWebSocketUtil class
Constructors
- FlutterWebSocketUtil()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - 断开连接
-
closeHeart(
) → Future< void> - 关闭心跳
-
connect(
{required String url, ConnectError? onError, ConnectClose? onClose, ConnectOpen? onOpen, MessageHandle? onMessage}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openHeart(
) → Future< void> - 开启心跳
-
send(
[String? message]) → Future< void> - 发送消息
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlutterWebSocketUtil
-
no setter