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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 void set binaryType(String value); | 23 void set binaryType(String value); |
24 | 24 |
25 int get bufferedAmount(); | 25 int get bufferedAmount(); |
26 | 26 |
27 String get extensions(); | 27 String get extensions(); |
28 | 28 |
29 String get protocol(); | 29 String get protocol(); |
30 | 30 |
31 int get readyState(); | 31 int get readyState(); |
32 | 32 |
| 33 String get url(); |
| 34 |
33 void addEventListener(String type, EventListener listener, [bool useCapture]); | 35 void addEventListener(String type, EventListener listener, [bool useCapture]); |
34 | 36 |
35 void close([int code, String reason]); | 37 void close([int code, String reason]); |
36 | 38 |
37 bool dispatchEvent(Event evt); | 39 bool dispatchEvent(Event evt); |
38 | 40 |
39 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 41 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
40 | 42 |
41 bool send(String data); | 43 bool send(String data); |
42 } | 44 } |
OLD | NEW |