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