commit | c1c4e389d40c2590196521d1109d2f1d86741e2a | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Fri Jun 08 14:59:31 2018 -0700 |
committer | GitHub <noreply@github.com> | Fri Jun 08 14:59:31 2018 -0700 |
tree | a8feb0acd0e43950139256a9cded72e78e6c2a66 | |
parent | a4976ae5668989e80824a6ae087ed5d6172c6c95 [diff] |
Allow a type on MultiChannel (#26) - Add generic type arguments to the classes and relevant fields. - Explicitly indicate which arguments take a `StreamChannel<dynamic>`. - Update the test for MultiChannel to use a consistent type.
This package exposes the StreamChannel
interface, which represents a two-way communication channel. Each StreamChannel
exposes a Stream
for receiving data and a StreamSink
for sending it.
StreamChannel
helps abstract communication logic away from the underlying protocol. For example, the test
package re-uses its test suite communication protocol for both WebSocket connections to browser suites and Isolate connections to VM tests.
This package also contains utilities for dealing with StreamChannel
s and with two-way communications in general. For documentation of these utilities, see the API docs.