commit | 5753cf13bb7fc0988d86773460e5ebeb1a170122 | [log] [tgz] |
---|---|---|
author | Jacob MacDonald <jakemac@google.com> | Mon Apr 16 13:48:36 2018 -0700 |
committer | Jacob MacDonald <jakemac@google.com> | Mon Apr 16 13:48:36 2018 -0700 |
tree | b5e58d5a38b4e23ed0ca53788f4bc384b05433e7 | |
parent | 30c58c7ea13cff2ee8d1e34b775d764f9fc7a944 [diff] |
code review updates
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.