ProLegacyClient class

the ProLegacyClient class wraps and combines the two Websocket APIs

Inheritance

Constructors

ProLegacyClient(ProSettings settings)

Properties

callbacks Map<String, List<void Function(ProEvent<Object> event)>>
getter/setter pairinherited
connected bool
no setteroverride
connecting bool
no setterinherited
connectionStatus Stream<ProConnectionStatus>
no setterinherited
data ProState
getter/setter pair
destroyed bool
getter/setter pairinherited
disconnected bool
no setterinherited
eventStream StreamController<ProEvent<Object>>
getter/setter pairinherited
failed bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
imageBaseUrl String
no setter
remote ProRemoteClient?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sd ProSDClient?
getter/setter pair
settings ProSettings
getter/setter pair
status ProConnectionStatus
getter/setter pairinherited
updates Stream<String>
no setterinherited

Methods

clear() → void
inherited
connect() Future
connectionHandler(ProConnectionStatus s) → void
delayedConnectionCheck() Future<ProConnectionStatus>
returns a future that completes after two seconds with the connection status
inherited
disconnect() Future
dispose() → void
inherited
emit(String event, [Object? data]) → void
emit will always emit twice... first, by the name of the event submitted, and secondly, by the name of the special event 'all'
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify([String eventName = 'update']) → void
inherited
on(String event, void callback(ProEvent<Object> event)) ProEventObserver
set a callback for events of this type.
inherited
stream(String event) Stream<ProEvent<Object>>
listen to an event on this ProEventEmitter as a stream. An ProEvent will be emitted whenever the event by this name is emitted.
inherited
toString() String
A string representation of this object.
inherited

Operators

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