WebSocketCommunicator class abstract

Implementers

Constructors

WebSocketCommunicator({required Application app, required Logger logger, Map<String, dynamic> params = const {}, Duration sendTimeout = const Duration(minutes: 2), Duration timeout = const Duration(minutes: 5)})

Properties

app Application
final
hashCode int
The hash code for this object.
no setterinherited
lastPing DateTime
no setter
logger → Logger
final
onCommandReceived Future<void> Function(DeviceCommand)
getter/setter pair
online bool
no setter
params Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout Duration
final
timeout Duration
final

Methods

attachSocket(WebSocket? socket) → void
close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(DeviceCommand command) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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