added longpoller class and example