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

Unified Diff: runtime/bin/service_object_patch.dart

Issue 293363007: Add 'Sockets' to observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Deploy Created 6 years, 7 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/bin/socket_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/service_object_patch.dart
diff --git a/runtime/bin/service_object_patch.dart b/runtime/bin/service_object_patch.dart
index a7e104e61a0eafb8484a8b372295891dfac4b52f..52dc3eb478be4e0f6dfc4c64d864ba5a94fed1e8 100644
--- a/runtime/bin/service_object_patch.dart
+++ b/runtime/bin/service_object_patch.dart
@@ -7,7 +7,7 @@ final Map _servicePathMap = {
'http' : {
'servers' : _httpServersServiceObject,
},
- 'socket' : _socketServiceObject,
+ 'sockets' : _socketsServiceObject,
'file' : {
'randomaccessfiles' : _randomAccessFilesServiceObject
}
@@ -64,7 +64,7 @@ Map _httpServersServiceObject(args) {
};
}
-Map _socketServiceObject(args) {
+Map _socketsServiceObject(args) {
if (args.length == 1) {
var socket = _NativeSocket._sockets[int.parse(args.first)];
if (socket == null) {
@@ -73,7 +73,7 @@ Map _socketServiceObject(args) {
return socket._toJSON(false);
}
return {
- 'id': 'io/socket',
+ 'id': 'io/sockets',
'type': 'SocketList',
'members': _NativeSocket._sockets.values
.map((socket) => socket._toJSON(true)).toList(),
« no previous file with comments | « no previous file | runtime/bin/socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698