| Index: runtime/bin/socket_patch.dart
|
| diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
|
| index ebe557fe076737dc2db7538acddfc01895805cae..a50d51f6641cf652aee7cb1054434cf25ce20214 100644
|
| --- a/runtime/bin/socket_patch.dart
|
| +++ b/runtime/bin/socket_patch.dart
|
| @@ -1061,21 +1061,24 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
|
| if (result is OSError) throw result;
|
| }
|
|
|
| - String get _serviceTypePath => 'io/socket';
|
| + String get _serviceTypePath => 'io/sockets';
|
| String get _serviceTypeName => 'Socket';
|
|
|
| Map _toJSON(bool ref) {
|
| + var name = '${address.host}:$port';
|
| + if (isTcp && !isListening) name += " <-> ${remoteAddress.host}:$remotePort";
|
| var r = {
|
| 'id': _servicePath,
|
| 'type': _serviceType(ref),
|
| - 'name': '${address.host}:$port',
|
| - 'user_name': '${address.host}:$port',
|
| + 'name': name,
|
| + 'user_name': name,
|
| };
|
| if (ref) {
|
| return r;
|
| }
|
| r['port'] = port;
|
| r['address'] = address.host;
|
| + r['fd'] = nativeGetSocketId();
|
| return r;
|
| }
|
|
|
|
|