StreamMessageProvider<T> class abstract

Stream message provider is a abstract class that will be implemented by all message providers It will be used to communicate with the external message service and return the message to the application.

The difference between MessageProvider and StreamMessageProvider is that MessageProvider will return the message once and close the connection while StreamMessageProvider will return the message and keep the connection open to receive more messages.

Constructors

StreamMessageProvider.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(String message) Stream<T>
This method will be used to send the message to the external service and return the message to the application.
toString() String
A string representation of this object.
inherited

Operators

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