Index: runtime/vm/service/message.dart |
diff --git a/runtime/vm/service/message.dart b/runtime/vm/service/message.dart |
index 3afbd0dfce50c18f56ef39ffc10fb0fb254d4e85..7b07baac5e6ee2d9bcc8223d78f36e00e0d1820c 100644 |
--- a/runtime/vm/service/message.dart |
+++ b/runtime/vm/service/message.dart |
@@ -9,6 +9,7 @@ class Message { |
bool get completed => _completer.isCompleted; |
/// Future of response. |
Future<String> get response => _completer.future; |
+ Client client; |
// Client-side identifier for this message. |
final serial; |
@@ -33,7 +34,7 @@ class Message { |
}); |
} |
- Message.fromJsonRpc(Map map) |
+ Message.fromJsonRpc(this.client, Map map) |
: serial = map['id'], method = map['method'] { |
params.addAll(map['params']); |
} |
@@ -48,12 +49,12 @@ class Message { |
return uri.pathSegments[0]; |
} |
- Message.fromUri(Uri uri) |
+ Message.fromUri(this.client, Uri uri) |
: method = _methodNameFromUri(uri) { |
params.addAll(uri.queryParameters); |
} |
- Message.forIsolate(Uri uri, RunningIsolate isolate) |
+ Message.forIsolate(this.client, Uri uri, RunningIsolate isolate) |
: method = _methodNameFromUri(uri) { |
params.addAll(uri.queryParameters); |
params['isolateId'] = isolate.serviceId; |