| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library http_parser.web_socket; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:crypto/crypto.dart'; | 7 import 'package:crypto/crypto.dart'; |
| 10 | 8 |
| 11 import 'copy/web_socket_impl.dart'; | 9 import 'copy/web_socket_impl.dart'; |
| 12 | 10 |
| 13 /// An implementation of the WebSocket protocol that's not specific to "dart:io" | 11 /// An implementation of the WebSocket protocol that's not specific to "dart:io" |
| 14 /// or to any particular HTTP API. | 12 /// or to any particular HTTP API. |
| 15 /// | 13 /// |
| 16 /// Because this is HTTP-API-agnostic, it doesn't handle the initial [WebSocket | 14 /// Because this is HTTP-API-agnostic, it doesn't handle the initial [WebSocket |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 /// An exception thrown by [CompatibleWebSocket]. | 103 /// An exception thrown by [CompatibleWebSocket]. |
| 106 class CompatibleWebSocketException implements Exception { | 104 class CompatibleWebSocketException implements Exception { |
| 107 final String message; | 105 final String message; |
| 108 | 106 |
| 109 CompatibleWebSocketException([this.message]); | 107 CompatibleWebSocketException([this.message]); |
| 110 | 108 |
| 111 String toString() => message == null | 109 String toString() => message == null |
| 112 ? "CompatibleWebSocketException" : | 110 ? "CompatibleWebSocketException" : |
| 113 "CompatibleWebSocketException: $message"; | 111 "CompatibleWebSocketException: $message"; |
| 114 } | 112 } |
| OLD | NEW |