PDWebSocketTransport class
基于 WebSocket 的长连接传输(纯 Dart)。
- Implemented types
Constructors
Properties
-
events
→ Stream<
PDLongLinkEvent> -
事件流(广播)。
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
{required Uri uri, required Map< String, String> headers, required Duration connectTimeout}) → Future<void> -
建立连接。
override
-
disconnect(
{int? closeCode, String? closeReason}) → Future< void> -
主动断开连接。
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendText(
String text) → Future< void> -
发送文本消息。
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited