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

Unified Diff: runtime/bin/websocket.dart

Issue 10907047: Use onClosed instead of onError in the WebSocket classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 8 years, 3 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 | « no previous file | runtime/bin/websocket_impl.dart » ('j') | 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 c11a569497e23d1709a0dbfcfbce03a4082ff912..e7375da3baf7c8c140738047b652a83ef31f5f60 100644
--- a/runtime/bin/websocket.dart
+++ b/runtime/bin/websocket.dart
@@ -54,12 +54,6 @@ interface WebSocketConnection extends Hashable {
void set onClosed(void callback(int status, String reason));
/**
- * Sets the callback to be called when the web socket connection
- * encountered an error.
- */
- void set onError(void callback(e));
-
- /**
* Sends a message. The [message] must be a [:String:] a
* [:List<int>:] or [:null:].
*/
@@ -129,12 +123,6 @@ interface WebSocketClientConnection
void set onNoUpgrade(void callback(HttpClientResponse response));
/**
- * Sets the callback to be called when the web socket connection
- * encountered an error.
- */
- void set onError(void callback(e));
-
- /**
* Sends a message. The [message] must be a [:String:] or a
* [:List<int>:]. To send an empty message use either an empty
* [:String:] or an empty [:List<int>:]. [:null:] cannot be used.
« no previous file with comments | « no previous file | runtime/bin/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698