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

Unified Diff: pkg/json_rpc_2/lib/src/server.dart

Issue 691053006: Add a Client class to json_rpc_2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 1 month 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 | « pkg/json_rpc_2/lib/src/exception.dart ('k') | pkg/json_rpc_2/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/json_rpc_2/lib/src/server.dart
diff --git a/pkg/json_rpc_2/lib/src/server.dart b/pkg/json_rpc_2/lib/src/server.dart
index bd243de73230f35d5db3d281b553c74a409995e6..1ba8fccc2f923e337d0773d0a66e14f5b7c0f703 100644
--- a/pkg/json_rpc_2/lib/src/server.dart
+++ b/pkg/json_rpc_2/lib/src/server.dart
@@ -69,6 +69,9 @@ class Server {
: _streams = new TwoWayStream.withoutJson(
"Server", requests, "requests", responses, "responses");
+ /// Users of the library should not use this constructor.
+ Server.internal(this._streams);
+
/// Starts listening to the underlying stream.
///
/// Returns a [Future] that will complete when the stream is closed or when it
« no previous file with comments | « pkg/json_rpc_2/lib/src/exception.dart ('k') | pkg/json_rpc_2/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698