CourierClient class abstract
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
) → void -
courierBytesStream(
String topic) → Stream< Uint8List> -
courierEventStream(
) → Stream< CourierEvent> -
courierMessageStream<
T> (String topic, {MessageAdapter adapter, dynamic decoder}) → Stream< T> -
destroy(
) → void -
disconnect(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publishCourierBytes(
Uint8List bytes, String topic, QoS qos) → void -
publishCourierMessage(
CourierMessage message, {MessageAdapter adapter, dynamic encoder}) → void -
subscribe(
String topic, QoS qos) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
String topic) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required AuthProvider authProvider, required CourierConfiguration config, List< MessageAdapter> messageAdapters = const <MessageAdapter>[BytesMessageAdapter(), JSONMessageAdapter()]}) → CourierClient