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

Unified Diff: runtime/bin/websocket_impl.dart

Issue 10945004: Make it possible to read a specific number of characters from a string input stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/string_stream.dart ('k') | tests/standalone/io/string_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 dad76d798e45951717e4929f177ac2846d4839ba..0e187a80b5b4548a641b2235b0f09353623f1fe5 100644
--- a/runtime/bin/websocket_impl.dart
+++ b/runtime/bin/websocket_impl.dart
@@ -293,7 +293,7 @@ class _WebSocketProtocolProcessor {
var decoder = _StringDecoders.decoder(Encoding.UTF_8);
decoder.write(
_controlPayload.getRange(2, _controlPayload.length - 2));
- reason = decoder.decoded;
+ reason = decoder.decoded();
}
}
if (onClosed !== null) onClosed(status, reason);
@@ -481,7 +481,7 @@ class _WebSocketConnectionBase {
_onWebSocketMessageEnd() {
if (_onMessage !== null) {
if (_currentMessageType == _WebSocketMessageType.TEXT) {
- _onMessage(_decoder.decoded);
+ _onMessage(_decoder.decoded());
} else {
_onMessage(_outputStream.read());
}
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | tests/standalone/io/string_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698