WebSocketTestDriverCommunicator class

Constructors

WebSocketTestDriverCommunicator({required String appIdentifier, String? driverId, required String driverName, Logger? logger, Duration maxConnectionTime = const Duration(minutes: 30), Duration pingTime = const Duration(seconds: 30), required String secret, required String url})

Properties

active bool
no setter
appIdentifier String
final
commandStream Stream<DeviceCommand>
no setter
connected bool
no setter
driverId String
final
driverName String
final
hashCode int
The hash code for this object.
no setterinherited
maxConnectionTime Duration
final
onConnectionChanged Future<void> Function(bool)
no getter
pingTime Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

activate() Future<void>
deactivate() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(DeviceCommand command, {bool instant = false}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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