Index: sdk/lib/io/websocket.dart |
diff --git a/sdk/lib/io/websocket.dart b/sdk/lib/io/websocket.dart |
index df6c8cf523390d47e14b0986b4cd27ff3815a016..42c3562e205883c5eeedc8fa27a18ab5a9c53c9f 100644 |
--- a/sdk/lib/io/websocket.dart |
+++ b/sdk/lib/io/websocket.dart |
@@ -402,6 +402,14 @@ abstract class WebSocket |
* must be either `String`s, or `List<int>`s holding bytes. |
*/ |
Future addStream(Stream stream); |
+ |
+ /** |
+ * Sends a text message with the text represented by [bytes]. |
+ * |
+ * The [bytes] should be valid UTF-8 encoded Unicode characters. If they are |
+ * not, the receiving end will close the connection. |
+ */ |
+ void addUtf8Text(List<int> bytes); |
} |
class WebSocketException implements IOException { |