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

Unified Diff: runtime/vm/service/client.dart

Issue 340443006: Add support for asynchronous event notification to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « runtime/vm/service.cc ('k') | runtime/vm/service/constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/client.dart
diff --git a/runtime/vm/service/client.dart b/runtime/vm/service/client.dart
index 553fa1fd0a06c90cb3f74165500322bc4b68b457..ba34f1ca9ebfc006ff153536f2d1015360a6de01 100644
--- a/runtime/vm/service/client.dart
+++ b/runtime/vm/service/client.dart
@@ -6,12 +6,12 @@ part of vmservice;
// A service client.
abstract class Client {
- /// Port that lives as long as the network client.
- final RawReceivePort receivePort = new RawReceivePort();
+ /// A port for receipt of asynchronous service events.
+ final RawReceivePort eventPort = new RawReceivePort();
final VMService service;
Client(this.service) {
- receivePort.handler = (response) {
+ eventPort.handler = (response) {
post(null, response);
};
service._addClient(this);
@@ -19,7 +19,7 @@ abstract class Client {
/// When implementing, call [close] when the network connection closes.
void close() {
- receivePort.close();
+ eventPort.close();
service._removeClient(this);
}
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698