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