Add methods for longpoll