| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { | 7 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { |
| 8 | 8 |
| 9 WebSocket(String url); | 9 WebSocket(String url); |
| 10 | 10 |
| 11 static final int CLOSED = 3; | 11 static final int CLOSED = 3; |
| 12 | 12 |
| 13 static final int CLOSING = 2; | 13 static final int CLOSING = 2; |
| 14 | 14 |
| 15 static final int CONNECTING = 0; | 15 static final int CONNECTING = 0; |
| 16 | 16 |
| 17 static final int OPEN = 1; | 17 static final int OPEN = 1; |
| 18 | 18 |
| 19 String get URL(); | 19 final String URL; |
| 20 | 20 |
| 21 String get binaryType(); | 21 String binaryType; |
| 22 | 22 |
| 23 void set binaryType(String value); | 23 final int bufferedAmount; |
| 24 | 24 |
| 25 int get bufferedAmount(); | 25 final String extensions; |
| 26 | 26 |
| 27 String get extensions(); | 27 final String protocol; |
| 28 | 28 |
| 29 String get protocol(); | 29 final int readyState; |
| 30 | 30 |
| 31 int get readyState(); | 31 final String url; |
| 32 | |
| 33 String get url(); | |
| 34 | 32 |
| 35 void addEventListener(String type, EventListener listener, [bool useCapture]); | 33 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 36 | 34 |
| 37 void close([int code, String reason]); | 35 void close([int code, String reason]); |
| 38 | 36 |
| 39 bool dispatchEvent(Event evt); | 37 bool dispatchEvent(Event evt); |
| 40 | 38 |
| 41 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 39 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 42 | 40 |
| 43 bool send(String data); | 41 bool send(String data); |
| 44 } | 42 } |
| OLD | NEW |