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