MultiChannel<T> constructor

MultiChannel<T>(StreamChannel inner)

Creates a new MultiChannel that sends and receives messages over inner.

The inner channel must take JSON-like objects.

Implementation

factory MultiChannel(StreamChannel<dynamic> inner) =>
    new _MultiChannel<T>(inner);