RpcStreamChannelTransformer class
A transformer that wraps/unwraps generic JSON events as JsonRpc2Message
This transformer can be applied to a StreamChannel
<SerializableEntity
>.
The resulting stream channel accepts (and emits) any kind of data (that can
be JSON de/serialized) and wraps it in a JsonRpc2Message, before passing
it to the transformed channel.
Constructors
- RpcStreamChannelTransformer()
- Default constructor
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
-
bind(
StreamChannel< SerializableEntity> channel) → StreamChannel -
Transforms the events sent to and emitted by
channel
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited