Don't do this yourself here. Call https://github.com/openpeer/rolodex/blob/master/lib/client/client.js#L198
e.g https://github.com/openpeer/rolodex/blob/master/example/ui/app.js#L58

Same for logout.