| 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 { | 7 interface WebSocket extends EventTarget { |
| 8 | 8 |
| 9 static final int CLOSED = 3; | 9 static final int CLOSED = 3; |
| 10 | 10 |
| 11 static final int CLOSING = 2; | 11 static final int CLOSING = 2; |
| 12 | 12 |
| 13 static final int CONNECTING = 0; | 13 static final int CONNECTING = 0; |
| 14 | 14 |
| 15 static final int OPEN = 1; | 15 static final int OPEN = 1; |
| 16 | 16 |
| 17 String get URL(); | 17 String get URL(); |
| 18 | 18 |
| 19 String get binaryType(); | 19 String get binaryType(); |
| 20 | 20 |
| 21 void set binaryType(String value); | 21 void set binaryType(String value); |
| 22 | 22 |
| 23 int get bufferedAmount(); | 23 int get bufferedAmount(); |
| 24 | 24 |
| 25 String get extensions(); | 25 String get extensions(); |
| 26 | 26 |
| 27 EventListener get onclose(); | |
| 28 | |
| 29 void set onclose(EventListener value); | |
| 30 | |
| 31 EventListener get onerror(); | |
| 32 | |
| 33 void set onerror(EventListener value); | |
| 34 | |
| 35 EventListener get onmessage(); | |
| 36 | |
| 37 void set onmessage(EventListener value); | |
| 38 | |
| 39 EventListener get onopen(); | |
| 40 | |
| 41 void set onopen(EventListener value); | |
| 42 | |
| 43 String get protocol(); | 27 String get protocol(); |
| 44 | 28 |
| 45 int get readyState(); | 29 int get readyState(); |
| 46 | 30 |
| 47 void addEventListener(String type, EventListener listener, [bool useCapture]); | 31 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 48 | 32 |
| 49 void close([int code, String reason]); | 33 void close([int code, String reason]); |
| 50 | 34 |
| 51 bool dispatchEvent(Event evt); | 35 bool dispatchEvent(Event evt); |
| 52 | 36 |
| 53 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 37 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 54 | 38 |
| 55 bool send(String data); | 39 bool send(String data); |
| 56 } | 40 } |
| OLD | NEW |