Add check if token set. Don't open websocket connection if no token