moved websocket creation until after sfdc username obtained