changed ws url from localhost to 127.0.0.1.