Improved LongPolling client-side