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

Unified Diff: runtime/bin/websocket.dart

Issue 10254001: Add websocket files to dummy io.dart implementation for dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix code blocks Created 8 years, 8 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 | « lib/compiler/implementation/lib/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/websocket.dart
diff --git a/runtime/bin/websocket.dart b/runtime/bin/websocket.dart
index 1f0a61c09583e20bad105d933fa9ab2346cb7181..f7a36f8fcfde41fe3e50c8a29e0e99ba28968bc9 100644
--- a/runtime/bin/websocket.dart
+++ b/runtime/bin/websocket.dart
@@ -6,16 +6,16 @@
* The web socket protocol is implemented by a HTTP server handler
* which can be instantiated like this:
*
- * WebSocketHandler wsHandler = new WebSocketHandler();
+ * WebSocketHandler wsHandler = new WebSocketHandler();
ahe 2012/04/27 09:27:45 Code samples should be wrapped in [:CODE_HERE:].
Mads Ager (google) 2012/04/27 09:29:50 Yes, I know. But that will look horrible with the
Bob Nystrom 2012/04/27 18:06:37 I think what Mads is doing here is fine. The inden
*
* and then its onRequest method can be assigned to the HTTP server, e.g.
*
- * server.defaultHandler = wsHandler.onRequest;
+ * server.defaultHandler = wsHandler.onRequest;
*
* or
*
- * server.addRequestHandler((req) => reg.path == "/ws", wsHandler.onRequest);
- *
+ * server.addRequestHandler((req) => req.path == "/ws",
+ * wsHandler.onRequest);
*/
interface WebSocketHandler default _WebSocketHandler {
WebSocketHandler();
« no previous file with comments | « lib/compiler/implementation/lib/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698