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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 | 863 |
866 class _WebSocketCloseEvent implements CloseEvent { | 864 class _WebSocketCloseEvent implements CloseEvent { |
867 _WebSocketCloseEvent(this._wasClean, this._code, this._reason); | 865 _WebSocketCloseEvent(this._wasClean, this._code, this._reason); |
868 bool get wasClean => _wasClean; | 866 bool get wasClean => _wasClean; |
869 int get code => _code; | 867 int get code => _code; |
870 String get reason => _reason; | 868 String get reason => _reason; |
871 bool _wasClean; | 869 bool _wasClean; |
872 int _code; | 870 int _code; |
873 String _reason; | 871 String _reason; |
874 } | 872 } |
OLD | NEW |