I could not figure out how to implement long polling like in the original example with the proxy.
So set a long timeout and then on success or timeout re-init the request.
Agree that it would be far neater to implement a proxy but looking at the documentation i was not sure if i had access to success and failure callbacks to implement the long polling.