Index: runtime/bin/service_object_patch.dart |
diff --git a/runtime/bin/service_object_patch.dart b/runtime/bin/service_object_patch.dart |
index 7f2e0d84855ad1ec5e920bb182b9d163e060cf20..348e3b23bbd42f2fc432e944b87cab1a2c9eb619 100644 |
--- a/runtime/bin/service_object_patch.dart |
+++ b/runtime/bin/service_object_patch.dart |
@@ -6,6 +6,7 @@ |
final Map _servicePathMap = { |
'http' : { |
'servers' : _httpServersServiceObject, |
+ 'serverconnections' : _httpServerConnectionsServiceObject, |
}, |
'sockets' : _socketsServiceObject, |
'websockets' : _webSocketsServiceObject, |
@@ -87,6 +88,17 @@ Map _httpServersServiceObject(args) { |
}; |
} |
+Map _httpServerConnectionsServiceObject(args) { |
+ if (args.length == 1) { |
+ var connection = _HttpConnection._connections[int.parse(args.first)]; |
+ if (connection == null) { |
+ return {}; |
+ } |
+ return connection._toJSON(false); |
+ } |
+ return _makeServiceError("http/serverconnections can not be listed"); |
+} |
+ |
Map _socketsServiceObject(args) { |
if (args.length == 1) { |
var socket = _NativeSocket._sockets[int.parse(args.first)]; |