Update for API changes

Signed-off-by: Jack Huey kitskub@gmail.com
Merge pull request #628 from kitskub/client-connection

Update for API changes