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

Side by Side Diff: sdk/lib/io/websocket.dart

Issue 2856123003: Fix some bad documentation links. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/io/security_context.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * WebSocket status codes used when closing a WebSocket connection. 8 * WebSocket status codes used when closing a WebSocket connection.
9 */ 9 */
10 abstract class WebSocketStatus { 10 abstract class WebSocketStatus {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 ' instead of `extends` if implementing this abstract class.') 322 ' instead of `extends` if implementing this abstract class.')
323 WebSocket(); 323 WebSocket();
324 324
325 /** 325 /**
326 * Creates a WebSocket from an already-upgraded socket. 326 * Creates a WebSocket from an already-upgraded socket.
327 * 327 *
328 * The initial WebSocket handshake must have occurred prior to this call. A 328 * The initial WebSocket handshake must have occurred prior to this call. A
329 * WebSocket client can automatically perform the handshake using 329 * WebSocket client can automatically perform the handshake using
330 * [WebSocket.connect], while a server can do so using 330 * [WebSocket.connect], while a server can do so using
331 * [WebSocketTransformer.upgrade]. To manually upgrade an [HttpRequest], 331 * [WebSocketTransformer.upgrade]. To manually upgrade an [HttpRequest],
332 * [HttpRequest.detachSocket] may be called. 332 * [HttpResponse.detachSocket] may be called.
333 * 333 *
334 * [protocol] should be the protocol negotiated by this handshake, if any. 334 * [protocol] should be the protocol negotiated by this handshake, if any.
335 * 335 *
336 * [serverSide] must be passed explicitly. If it's `false`, the WebSocket will 336 * [serverSide] must be passed explicitly. If it's `false`, the WebSocket will
337 * act as the client and mask the messages it sends. If it's `true`, it will 337 * act as the client and mask the messages it sends. If it's `true`, it will
338 * act as the server and will not mask its messages. 338 * act as the server and will not mask its messages.
339 * 339 *
340 * If [compression] is provided, the [WebSocket] created will be configured 340 * If [compression] is provided, the [WebSocket] created will be configured
341 * to negotiate with the specified [CompressionOptions]. If none is specified 341 * to negotiate with the specified [CompressionOptions]. If none is specified
342 * then the [WebSocket] will be created with the default [CompressionOptions]. 342 * then the [WebSocket] will be created with the default [CompressionOptions].
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 void addUtf8Text(List<int> bytes); 415 void addUtf8Text(List<int> bytes);
416 } 416 }
417 417
418 class WebSocketException implements IOException { 418 class WebSocketException implements IOException {
419 final String message; 419 final String message;
420 420
421 const WebSocketException([this.message = ""]); 421 const WebSocketException([this.message = ""]);
422 422
423 String toString() => "WebSocketException: $message"; 423 String toString() => "WebSocketException: $message";
424 } 424 }
OLDNEW
« no previous file with comments | « sdk/lib/io/security_context.dart ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698