Added Monitor class to Connection. (#105)
authorPete Vander Giessen <petevg@gmail.com>
Wed, 5 Apr 2017 21:46:24 +0000 (17:46 -0400)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 21:46:24 +0000 (17:46 -0400)
commitf93420deb029b6938f73d28a4f7a414b2b9655dc
tree0f9a94b4fbd917a8a4e4b801f2646171c93f8ae5
parent66db09139155d755f5d879d41bb61d8ce48ecefe
Added Monitor class to Connection. (#105)

Added Monitor class to Connection.

Calling Monitor.status allows a client to determine whether the
connection is "connected", "disconnected" or in an "error" state, and
take appropriate action as a result.

This is meant to address the issue of watchers failing silently when the
websocket connection goes away due to a network issue.
juju/client/connection.py
tests/integration/test_connection.py