OLD | NEW |
| (Empty) |
1 | |
2 class _WebSocketJs extends _EventTargetJs implements WebSocket native "*WebSocke
t" { | |
3 | |
4 static final int CLOSED = 3; | |
5 | |
6 static final int CLOSING = 2; | |
7 | |
8 static final int CONNECTING = 0; | |
9 | |
10 static final int OPEN = 1; | |
11 | |
12 final String URL; | |
13 | |
14 String binaryType; | |
15 | |
16 final int bufferedAmount; | |
17 | |
18 final String extensions; | |
19 | |
20 final String protocol; | |
21 | |
22 final int readyState; | |
23 | |
24 final String url; | |
25 | |
26 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | |
27 | |
28 void close([int code = null, String reason = null]) native; | |
29 | |
30 bool dispatchEvent(_EventJs evt) native; | |
31 | |
32 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | |
33 | |
34 bool send(String data) native; | |
35 } | |
OLD | NEW |