commit | 1196a6ac4b205b58b453515df34b9c2f9dd4124b | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Tue Feb 27 14:59:26 2018 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 27 14:59:26 2018 -0800 |
tree | 1a7c31081685db2870fe685da1593a58a37696e9 | |
parent | 025dc2bc5500aa42418712513c7e7b0860e95015 [diff] |
Fix a race condition (#16) MultiChannel wasn't buffering incoming remote events if their virtual channels hadn't been created locally yet.
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.