Made a proper connect function (that mirrors Weasel) with the addition of a required qml-parent argument (the Websocket needs a partent object).