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

Unified Diff: runtime/observatory/lib/service_html.dart

Issue 886353006: Port metrics to RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « no previous file | runtime/observatory/lib/src/elements/context_view.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/context_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698