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

Unified Diff: sdk/lib/io/websocket_impl.dart

Issue 23003023: Remove usage of dart:utf from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Keep forgiving semantics. Created 7 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
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index aec29197075b7cf80ecc23a3216acd3cfb31cc84..5972494183fe6c8bdf3472a117db9ab07bbfac7d 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -95,7 +95,7 @@ class _WebSocketProtocolTransformer extends StreamEventTransformer {
_currentMessageType = _WebSocketMessageType.TEXT;
_controller = new StreamController(sync: true);
_controller.stream
- .transform(new Utf8DecoderTransformer(null))
+ .transform(UTF8.decoder)
.fold(new StringBuffer(), (buffer, str) => buffer..write(str))
.then((buffer) {
sink.add(buffer.toString());

Powered by Google App Engine
This is Rietveld 408576698