| 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(); |
| 26 |
| 25 EventListener get onclose(); | 27 EventListener get onclose(); |
| 26 | 28 |
| 27 void set onclose(EventListener value); | 29 void set onclose(EventListener value); |
| 28 | 30 |
| 29 EventListener get onerror(); | 31 EventListener get onerror(); |
| 30 | 32 |
| 31 void set onerror(EventListener value); | 33 void set onerror(EventListener value); |
| 32 | 34 |
| 33 EventListener get onmessage(); | 35 EventListener get onmessage(); |
| 34 | 36 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 45 void addEventListener(String type, EventListener listener, [bool useCapture]); | 47 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 46 | 48 |
| 47 void close([int code, String reason]); | 49 void close([int code, String reason]); |
| 48 | 50 |
| 49 bool dispatchEvent(Event evt); | 51 bool dispatchEvent(Event evt); |
| 50 | 52 |
| 51 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 53 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 52 | 54 |
| 53 bool send(String data); | 55 bool send(String data); |
| 54 } | 56 } |
| OLD | NEW |