OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 interface WebSocket extends EventTarget { | |
6 | |
7 static final int CLOSED = 3; | |
8 | |
9 static final int CLOSING = 2; | |
10 | |
11 static final int CONNECTING = 0; | |
12 | |
13 static final int OPEN = 1; | |
14 | |
15 String get URL(); | |
16 | |
17 String get binaryType(); | |
18 | |
19 void set binaryType(String value); | |
20 | |
21 int get bufferedAmount(); | |
22 | |
23 EventListener get onclose(); | |
24 | |
25 void set onclose(EventListener value); | |
26 | |
27 EventListener get onerror(); | |
28 | |
29 void set onerror(EventListener value); | |
30 | |
31 EventListener get onmessage(); | |
32 | |
33 void set onmessage(EventListener value); | |
34 | |
35 EventListener get onopen(); | |
36 | |
37 void set onopen(EventListener value); | |
38 | |
39 String get protocol(); | |
40 | |
41 int get readyState(); | |
42 | |
43 void close(); | |
44 | |
45 bool send(String data); | |
46 } | |
OLD | NEW |