Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: runtime/bin/websocket_impl.dart

Issue 10832145: Add a ListOutputStream.onData callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/list_stream_impl.dart ('k') | tests/standalone/io/list_input_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/websocket_impl.dart
diff --git a/runtime/bin/websocket_impl.dart b/runtime/bin/websocket_impl.dart
index b3482e249e36c66207136c1faa981f92dfb7750d..6be62008a96b76d94dec5ea1cac50a9c81bdbedc 100644
--- a/runtime/bin/websocket_impl.dart
+++ b/runtime/bin/websocket_impl.dart
@@ -503,7 +503,7 @@ class _WebSocketConnectionBase {
if (_currentMessageType == _WebSocketMessageType.TEXT) {
_onMessage(_decoder.decoded);
} else {
- _onMessage(_outputStream.contents());
+ _onMessage(_outputStream.read());
}
}
_decoder = null;
« no previous file with comments | « runtime/bin/list_stream_impl.dart ('k') | tests/standalone/io/list_input_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698