OLD | NEW |
1 | 1 |
2 class _WebSocketJs extends _DOMTypeJs implements WebSocket native "*WebSocket" { | 2 class _WebSocketJs extends _EventTargetJs implements WebSocket native "*WebSocke
t" { |
3 | 3 |
4 static final int CLOSED = 3; | 4 static final int CLOSED = 3; |
5 | 5 |
6 static final int CLOSING = 2; | 6 static final int CLOSING = 2; |
7 | 7 |
8 static final int CONNECTING = 0; | 8 static final int CONNECTING = 0; |
9 | 9 |
10 static final int OPEN = 1; | 10 static final int OPEN = 1; |
11 | 11 |
12 final String URL; | 12 final String URL; |
(...skipping 13 matching lines...) Expand all Loading... |
26 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 26 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
27 | 27 |
28 void close([int code = null, String reason = null]) native; | 28 void close([int code = null, String reason = null]) native; |
29 | 29 |
30 bool dispatchEvent(_EventJs evt) native; | 30 bool dispatchEvent(_EventJs evt) native; |
31 | 31 |
32 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 32 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
33 | 33 |
34 bool send(String data) native; | 34 bool send(String data) native; |
35 } | 35 } |
OLD | NEW |