| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; |
| 6 |
| 5 const String _webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | 7 const String _webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; |
| 6 | 8 |
| 7 class _WebSocketMessageType { | 9 class _WebSocketMessageType { |
| 8 static const int NONE = 0; | 10 static const int NONE = 0; |
| 9 static const int BINARY = 1; | 11 static const int BINARY = 1; |
| 10 static const int TEXT = 2; | 12 static const int TEXT = 2; |
| 11 } | 13 } |
| 12 | 14 |
| 13 | 15 |
| 14 class _WebSocketOpcode { | 16 class _WebSocketOpcode { |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 865 |
| 864 class _WebSocketCloseEvent implements CloseEvent { | 866 class _WebSocketCloseEvent implements CloseEvent { |
| 865 _WebSocketCloseEvent(this._wasClean, this._code, this._reason); | 867 _WebSocketCloseEvent(this._wasClean, this._code, this._reason); |
| 866 bool get wasClean => _wasClean; | 868 bool get wasClean => _wasClean; |
| 867 int get code => _code; | 869 int get code => _code; |
| 868 String get reason => _reason; | 870 String get reason => _reason; |
| 869 bool _wasClean; | 871 bool _wasClean; |
| 870 int _code; | 872 int _code; |
| 871 String _reason; | 873 String _reason; |
| 872 } | 874 } |
| OLD | NEW |