client: longpoll support (for testing; work in progress)