On Tue, Feb 11, 2014 at 3:22 PM, Kapil Thangavelu
kapil.thangav...@canonical.com wrote:
hybi-13 is the rfc version. the library jujuclient is using also has a
python3 variant.
I guess my question is what version of the websocket spec is supported
in the juju api server? Any attempt to make a
Also looking at the websocket code from go.net/websocket it looks like
all older versions of the protocol were dropped in Dec 2013.
Unfortunately, my go knowledge is limited and Im not sure how to tell
which version of the websocket library is being used. I see the
protocol version in the upstream
Got it working for anyone curious:
http://paste.ubuntu.com/6910254/
On Mon, Feb 10, 2014 at 1:02 PM, Adam Stokes adam.sto...@ubuntu.com wrote:
I tried a python3 variant that uses ws4py which is RFC 6455 compliant
and can not seem to get the login to work:
# OUtput
connection opened
hybi-13 is the rfc version. the library jujuclient is using also has a
python3 variant.
On Mon, Feb 10, 2014 at 8:02 PM, Adam Stokes adam.sto...@ubuntu.com wrote:
I tried a python3 variant that uses ws4py which is RFC 6455 compliant
and can not seem to get the login to work:
# OUtput
you could also have a look at jujuclient (pypi) for python examples
(deployer, quickstart, mojo, etc build on it).
ie. using jujuclient
from jujuclient import Environment
env = Environment(JUJU_ENV_URI)
env.login(JUJU_ENV_SECRET, admin)
print env.status()
underneath the hoods
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 02/07/2014 05:09 AM, Adam Stokes wrote:
I read through the docs/api.txt to try and get an understanding of
how to connect to juju's api server and what I've come up with so
far is the following:
#!/usr/bin/env perl
use Mojo::UserAgent; use