Index: runtime/observatory/lib/service_html.dart |
diff --git a/runtime/observatory/lib/service_html.dart b/runtime/observatory/lib/service_html.dart |
index f39253c56dac56f2a75b46c71d8ab8efeedb52c4..fe5b1c3af41d1a133bf222b96a8b96563540d579 100644 |
--- a/runtime/observatory/lib/service_html.dart |
+++ b/runtime/observatory/lib/service_html.dart |
@@ -5,7 +5,6 @@ |
library service_html; |
import 'dart:async'; |
-import 'dart:convert'; |
import 'dart:html'; |
import 'dart:typed_data'; |
@@ -28,17 +27,17 @@ class _HtmlWebSocket implements CommonWebSocket { |
_webSocket.onOpen.listen((Event) => onOpen()); |
_webSocket.onMessage.listen((MessageEvent event) => onMessage(event.data)); |
} |
- |
+ |
bool get isOpen => _webSocket.readyState == WebSocket.OPEN; |
- |
+ |
void send(dynamic data) { |
_webSocket.send(data); |
} |
- |
+ |
void close() { |
_webSocket.close(); |
} |
- |
+ |
Future<ByteData> nonStringToByteData(dynamic data) { |
assert(data is Blob); |
FileReader fileReader = new FileReader(); |