WebSocketProtocolChannel class
- Inheritance
-
- Object
- ProtocolChannel
- WebSocketProtocolChannel
Constructors
- WebSocketProtocolChannel.new({required Uri url, required String jwt})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- jwt → String
-
final
- onDataReceived ↔ void Function(Uint8List data)?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sub ↔ StreamSubscription?
-
getter/setter pair
- url → Uri
-
final
- webSocket ↔ WebSocketChannel?
-
getter/setter pair
Methods
-
dispose(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onData(
dynamic data) → void -
sendData(
Uint8List data) → Future< void> -
override
-
start(
void onDataReceived(Uint8List data), {void onDone()?, void onError(Object? error)?}) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited