commit | 66a45ffe55f8e5e59232a7484db0befe30c98c13 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Wed Feb 03 17:33:46 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Wed Feb 03 17:33:46 2016 -0800 |
tree | bfe74d2e98df1a3ad6939609ddec5c3d66190ce3 | |
parent | 32c090b29464e5f5eeb3726853a0baeb2719936b [diff] |
Add StreamChannel.withGuarantees and StreamChannelController. These APIs make it easier for users to create their own stream channels that follow the StreamChannel guarantees. R=tjblasi@google.com Review URL: https://codereview.chromium.org//1662773003 .
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.