| OLD | NEW |
| 1 # Dart VM Service Protocol 0.0 | 1 # Dart VM Service Protocol 0.0 |
| 2 | 2 |
| 3 This document describes _version 0.0_ of the Dart VM Service Protocol. | 3 This document describes _version 0.0_ of the Dart VM Service Protocol. |
| 4 This protocol is used to communicate with a running Dart Virtual | 4 This protocol is used to communicate with a running Dart Virtual |
| 5 Machine. | 5 Machine. |
| 6 | 6 |
| 7 To use the Service Protocol, start the VM with the *--observe* flag. | 7 To use the Service Protocol, start the VM with the *--observe* flag. |
| 8 The VM will start a webserver which services protocol requests via WebSocket. | 8 The VM will start a webserver which services protocol requests via WebSocket. |
| 9 It is possible to make HTTP (non-WebSocket) requests, | 9 It is possible to make HTTP (non-WebSocket) requests, |
| 10 but this does not allow access to VM _events_ and is not documented | 10 but this does not allow access to VM _events_ and is not documented |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 | 1260 |
| 1261 // The fields of this Instance. | 1261 // The fields of this Instance. |
| 1262 BoundField fields [optional]; | 1262 BoundField fields [optional]; |
| 1263 | 1263 |
| 1264 // The elements of a List instance. | 1264 // The elements of a List instance. |
| 1265 // | 1265 // |
| 1266 // Provided for instance kinds: | 1266 // Provided for instance kinds: |
| 1267 // List | 1267 // List |
| 1268 ListElement[] elements [optional]; | 1268 ListElement[] elements [optional]; |
| 1269 | 1269 |
| 1270 // The elements of a List instance. |
| 1271 // |
| 1272 // Provided for instance kinds: |
| 1273 // Map |
| 1274 MapAssociation[] associations [optional]; |
| 1275 |
| 1270 // The function associated with a Closure instance. | 1276 // The function associated with a Closure instance. |
| 1271 // | 1277 // |
| 1272 // Provided for instance kinds: | 1278 // Provided for instance kinds: |
| 1273 // Closure | 1279 // Closure |
| 1274 @Function closureFunction [optional]; | 1280 @Function closureFunction [optional]; |
| 1275 | 1281 |
| 1276 // The context associated with a Closure instance. | 1282 // The context associated with a Closure instance. |
| 1277 // | 1283 // |
| 1278 // Provided for instance kinds: | 1284 // Provided for instance kinds: |
| 1279 // Closure | 1285 // Closure |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 | 1530 |
| 1525 ### ListElement | 1531 ### ListElement |
| 1526 | 1532 |
| 1527 ``` | 1533 ``` |
| 1528 class ListElement { | 1534 class ListElement { |
| 1529 int index; | 1535 int index; |
| 1530 @Instance|Sentinel value; | 1536 @Instance|Sentinel value; |
| 1531 } | 1537 } |
| 1532 ``` | 1538 ``` |
| 1533 | 1539 |
| 1540 ### MapAssociation |
| 1541 |
| 1542 ``` |
| 1543 class MapAssociation { |
| 1544 @Instance|Sentinel key; |
| 1545 @Instance|Sentinel value; |
| 1546 } |
| 1547 ``` |
| 1548 |
| 1534 ### Message | 1549 ### Message |
| 1535 | 1550 |
| 1536 ``` | 1551 ``` |
| 1537 class Message { | 1552 class Message { |
| 1538 int index; | 1553 int index; |
| 1539 string name; | 1554 string name; |
| 1540 string messageObjectId; | 1555 string messageObjectId; |
| 1541 int size; | 1556 int size; |
| 1542 @Function handlerFunction [optional]; | 1557 @Function handlerFunction [optional]; |
| 1543 @Script handleScript [optional]; | 1558 @Script handleScript [optional]; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 // A list of isolates running in the VM. | 1817 // A list of isolates running in the VM. |
| 1803 @Isolate[] isolates | 1818 @Isolate[] isolates |
| 1804 } | 1819 } |
| 1805 ``` | 1820 ``` |
| 1806 | 1821 |
| 1807 ## Revision History | 1822 ## Revision History |
| 1808 | 1823 |
| 1809 version | comments | 1824 version | comments |
| 1810 ------- | -------- | 1825 ------- | -------- |
| 1811 0.0 | draft | 1826 0.0 | draft |
| OLD | NEW |