fixed websockets client connection