commit | 413421602bf44eb9cc0a6938b0c91639d6b62604 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Mon Feb 01 15:56:24 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Mon Feb 01 15:56:24 2016 -0800 |
tree | 1a8d1f47f00369b0dfb910757cc23c0dcf87366a | |
parent | 67c0ae4250571fee50ede63f8f2501e98dff2fae [diff] |
Add support for stream- and sink-specific changes. These are especially useful when doing stream-specific transformations like error handling. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1657943002 .
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.