pinger example for longpoling in full example