check for initialization of ws before reuqesting state