ProLegacyClient class
the ProLegacyClient class wraps and combines the two Websocket APIs
- Inheritance
-
- Object
- ProConnectedComponent
- ProLegacyClient
Constructors
- ProLegacyClient(ProSettings settings)
Properties
-
callbacks
↔ Map<
String, List< void Function(Event< >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<
Event< 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
-
connect(
) → Future -
connectionHandler(
ProConnectionStatus s) → void -
delayedConnectionCheck(
) → Future< ProConnectionStatus> -
returns a future that completes after two seconds
with the connection status
inherited
-
disconnect(
) → Future -
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
-
listen(
String event) → Stream< Event< Object> > -
listen to an event on this
EventEmitter
as a stream. A True value will be emitted whenever the event by this name is emitted.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(Event< Object> event)) → EventObserver -
set a callback for events of this type.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited