[server] switch to long polling, since no server supports websockets