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

Unified Diff: sdk/lib/io/websocket.dart

Issue 268673018: Add deprecated WebSocket constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/websocket.dart
diff --git a/sdk/lib/io/websocket.dart b/sdk/lib/io/websocket.dart
index 386671da5d4ca2053103cf6fd01cfc3579166bd9..327ef3aafff218300dd82a20dcf20ac8326d8305 100644
--- a/sdk/lib/io/websocket.dart
+++ b/sdk/lib/io/websocket.dart
@@ -133,6 +133,10 @@ abstract class WebSocket implements Stream, StreamSink {
{List<String> protocols: const []}) =>
_WebSocketImpl.connect(url, protocols);
+ @Deprecated('This constructor will be removed in Dart 2.0. Use `implements`'
+ ' instead of `extends` if implementing this abstract class.')
+ WebSocket();
+
/**
* Creates a WebSocket from an already-upgraded socket.
*
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698