fixed calling the socket code

there was an issue with the QR viewstate not showing QR code