| 136 | | The second callback uses the result from the version request, a dictionary with the keys `name` and `version` to hold the software name and version strings as reported by our server. |
| 137 | | |
| 138 | | The third callback neatly closes the stream. In case of any error, the added errback handler just logs it and finally we add a callback that is always called, shutting down the application after one second. |
| | 136 | The second callback uses the result from the version request, a dictionary with the keys `name` and `version` to hold the software name and version strings as reported by our server. Having been passed this dictionary, `printVersion` prints the information to the terminal. The third callback neatly closes the stream. In case of any error, the added errback handler just logs it and finally we add a callback that is always called, shutting down the application after one second. |