can't set the user-agent with jquery
don't connect the websocket until we need to