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

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

Issue 1255273007: Nuke some whitespace in observatory (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/cli/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/service_io.dart
diff --git a/runtime/observatory/lib/service_io.dart b/runtime/observatory/lib/service_io.dart
index 9bd5242eb8693f18a482effff57b036b7106e6d8..2a91426b5f16c70dfcc57eddda6bce1ebf848a03 100644
--- a/runtime/observatory/lib/service_io.dart
+++ b/runtime/observatory/lib/service_io.dart
@@ -16,7 +16,7 @@ export 'package:observatory/service_common.dart';
class _IOWebSocket implements CommonWebSocket {
WebSocket _webSocket;
-
+
void connect(String address,
void onOpen(),
void onMessage(dynamic data),
@@ -34,20 +34,20 @@ class _IOWebSocket implements CommonWebSocket {
onError();
});
}
-
+
bool get isOpen =>
(_webSocket != null) && (_webSocket.readyState == WebSocket.OPEN);
-
+
void send(dynamic data) {
_webSocket.add(data);
}
-
+
void close() {
if (_webSocket != null) {
_webSocket.close();
}
}
-
+
Future<ByteData> nonStringToByteData(dynamic data) {
assert(data is Uint8List);
Logger.root.info('Binary data size in bytes: ${data.lengthInBytes}');
« no previous file with comments | « no previous file | runtime/observatory/lib/src/cli/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698