commit | 5d86c82544cd96ded2b13bf32e29513113276e2e | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Thu Jan 28 20:00:25 2016 |
committer | Natalie Weizenbaum <nweiz@google.com> | Thu Jan 28 20:00:25 2016 |
tree | 3ac2d6b25e79d5ce1c469786008249c6294584fd | |
parent | f72ea5afa0edd64e18c03cad890eb8e7085bd28e [diff] |
Add a document-by-document JSON transformer. This makes it easy to send JSON over WebSocket connections, for example. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1643843002 .
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.