OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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"; | 5 part of dart.io; |
6 | 6 |
7 const String _webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | 7 const String _webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; |
8 const String _clientNoContextTakeover = "client_no_context_takeover"; | 8 const String _clientNoContextTakeover = "client_no_context_takeover"; |
9 const String _serverNoContextTakeover = "server_no_context_takeover"; | 9 const String _serverNoContextTakeover = "server_no_context_takeover"; |
10 const String _clientMaxWindowBits = "client_max_window_bits"; | 10 const String _clientMaxWindowBits = "client_max_window_bits"; |
11 const String _serverMaxWindowBits = "server_max_window_bits"; | 11 const String _serverMaxWindowBits = "server_max_window_bits"; |
12 | 12 |
13 // Matches _WebSocketOpcode. | 13 // Matches _WebSocketOpcode. |
14 class _WebSocketMessageType { | 14 class _WebSocketMessageType { |
15 static const int NONE = 0; | 15 static const int NONE = 0; |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 return code != null && | 1282 return code != null && |
1283 (code < WebSocketStatus.NORMAL_CLOSURE || | 1283 (code < WebSocketStatus.NORMAL_CLOSURE || |
1284 code == WebSocketStatus.RESERVED_1004 || | 1284 code == WebSocketStatus.RESERVED_1004 || |
1285 code == WebSocketStatus.NO_STATUS_RECEIVED || | 1285 code == WebSocketStatus.NO_STATUS_RECEIVED || |
1286 code == WebSocketStatus.ABNORMAL_CLOSURE || | 1286 code == WebSocketStatus.ABNORMAL_CLOSURE || |
1287 (code > WebSocketStatus.INTERNAL_SERVER_ERROR && | 1287 (code > WebSocketStatus.INTERNAL_SERVER_ERROR && |
1288 code < WebSocketStatus.RESERVED_1015) || | 1288 code < WebSocketStatus.RESERVED_1015) || |
1289 (code >= WebSocketStatus.RESERVED_1015 && code < 3000)); | 1289 (code >= WebSocketStatus.RESERVED_1015 && code < 3000)); |
1290 } | 1290 } |
1291 } | 1291 } |
OLD | NEW |