Hande a websocket connection/disconnection
Require primus
Initialise / disconnect XMPP connection