commit | f72ea5afa0edd64e18c03cad890eb8e7085bd28e | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Wed Jan 27 23:28:46 2016 |
committer | Natalie Weizenbaum <nweiz@google.com> | Wed Jan 27 23:28:46 2016 |
tree | aff95b9d8ebde7682b016bfc80ce8146c6415144 | |
parent | 8e628719a7ed4d7974c9a746d9de9da8f292f640 [diff] |
Add IsolateChannel.connect* constructors. These constructors use a lightweight protocol to establish a two-way connection over a previously-one-way connection. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1638183002 .
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.