| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // The following code is copied from sdk/lib/io/websocket_impl.dart. The | 5 // The following code is copied from sdk/lib/io/websocket_impl.dart. The |
| 6 // "dart:io" implementation isn't used directly to support non-"dart:io" | 6 // "dart:io" implementation isn't used directly to support non-"dart:io" |
| 7 // applications. | 7 // applications. |
| 8 // | 8 // |
| 9 // Because it's copied directly, only modifications necessary to support the | 9 // Because it's copied directly, only modifications necessary to support the |
| 10 // desired public API and to remove "dart:io" dependencies have been made. | 10 // desired public API and to remove "dart:io" dependencies have been made. |
| 11 // | 11 // |
| 12 // This is up-to-date as of sdk revision | 12 // This is up-to-date as of sdk revision |
| 13 // 86227840d75d974feb238f8b3c59c038b99c05cf. | 13 // 86227840d75d974feb238f8b3c59c038b99c05cf. |
| 14 library http_parser.copy.web_socket_impl; | |
| 15 | |
| 16 import 'dart:async'; | 14 import 'dart:async'; |
| 17 import 'dart:convert'; | 15 import 'dart:convert'; |
| 18 import 'dart:math'; | 16 import 'dart:math'; |
| 19 import 'dart:typed_data'; | 17 import 'dart:typed_data'; |
| 20 | 18 |
| 21 import '../web_socket.dart'; | 19 import '../web_socket.dart'; |
| 22 import 'bytes_builder.dart'; | 20 import 'bytes_builder.dart'; |
| 23 import 'io_sink.dart'; | 21 import 'io_sink.dart'; |
| 24 import 'web_socket.dart'; | 22 import 'web_socket.dart'; |
| 25 | 23 |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 int __serviceId = 0; | 852 int __serviceId = 0; |
| 855 int get _serviceId { | 853 int get _serviceId { |
| 856 if (__serviceId == 0) __serviceId = _nextServiceId++; | 854 if (__serviceId == 0) __serviceId = _nextServiceId++; |
| 857 return __serviceId; | 855 return __serviceId; |
| 858 } | 856 } |
| 859 | 857 |
| 860 // The _toJSON, _servicePath, _serviceTypePath, _serviceTypeName, and | 858 // The _toJSON, _servicePath, _serviceTypePath, _serviceTypeName, and |
| 861 // _serviceType methods have been deleted for http_parser. The methods were | 859 // _serviceType methods have been deleted for http_parser. The methods were |
| 862 // unused in WebSocket code and produced warnings. | 860 // unused in WebSocket code and produced warnings. |
| 863 } | 861 } |
| OLD | NEW |