add long-polling support to v3

Hm, it seems I found a way to implement it better. Will implement today