SocketBase class

Constructors

SocketBase({required ValueChanged<String> callback, String? url, String? verifiedReceivedMessage, bool autoConnect = true})
SocketBase.fromWebSocket(String url, {required ValueChanged<String> callback, String? verifiedReceivedMessage, bool autoConnect = true})
factory

Properties

autoConnect → bool
final
callback → ValueChanged<String>
final
hashCode → int
The hash code for this object.
no setterinherited
isConnect ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
final
verifiedReceivedMessage → String?
final

Methods

connect() → Future<void>
dispose([bool cancelTimer = true]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() → Future<void>
sendMessage(String message) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited