commit | 553249599e1cb592f2025b5643b9da6d44883661 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Tue Jan 26 15:25:07 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Tue Jan 26 15:25:07 2016 -0800 |
tree | 42f7df0702c1ca82ad69ec2697c23996f1e9b4ca | |
parent | 3ea2d8c21c12ad72e98c5b2e0050913201fd6282 [diff] |
Add a StreamChannelCompleter class. This is by analogy with StreamCompleter and StreamSinkCompleter in the async package, and is in fact implemented using them. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1631103002 .
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.