websockets to long-polling change