| OLD | NEW |
| 1 | 1 |
| 2 class WebSocket native "*WebSocket" { | 2 class WebSocket native "*WebSocket" { |
| 3 | 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 |
| 4 String URL; | 12 String URL; |
| 5 | 13 |
| 6 String binaryType; | 14 String binaryType; |
| 7 | 15 |
| 8 int bufferedAmount; | 16 int bufferedAmount; |
| 9 | 17 |
| 10 String extensions; | 18 String extensions; |
| 11 | 19 |
| 12 String protocol; | 20 String protocol; |
| 13 | 21 |
| 14 int readyState; | 22 int readyState; |
| 15 | 23 |
| 16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 24 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 17 | 25 |
| 18 void close([int code = null, String reason = null]) native; | 26 void close([int code = null, String reason = null]) native; |
| 19 | 27 |
| 20 bool dispatchEvent(Event evt) native; | 28 bool dispatchEvent(Event evt) native; |
| 21 | 29 |
| 22 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 30 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 23 | 31 |
| 24 bool send(String data) native; | 32 bool send(String data) native; |
| 25 | 33 |
| 26 var dartObjectLocalStorage; | 34 var dartObjectLocalStorage; |
| 27 | 35 |
| 28 String get typeName() native; | 36 String get typeName() native; |
| 29 } | 37 } |
| OLD | NEW |