NOW it's working as long-polling client