websocket to xhr-polling