# UnityWebRequest and keep-alive?

**URL:** <https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075>\
**Category:** Multiplayer & Networking\
**Tags:** 5.3-beta\
**Created:** [October 27, 2015, 10:46am UTC](https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075 "2015-10-27T10:46:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johanwirde](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@johanwirde](https://discussions.unity.com/u/johanwirde)\
**Post date:** [October 27, 2015, 10:46am UTC](https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075/1 "2015-10-27T10:46:15Z")

</div>

I have started trying out the new UnityWebRequest API ([UnityWebRequest User Guide (Beta) - Google Docs](https://docs.google.com/document/d/1n3EI6xXnhlKQAOCjVNs091hmB7qld6BaNgmSuQr3Ga4/edit#heading=h.shs1exveq9xl))

As far as I can tell there is one vital feature missing - support for HTTP persistent connections / keep-alive.

Without keep-alive added latency for connection setup is a major problem for HTTP-based APIs, especially since many (good) APIs use https and SSL handshake can be several 100s ms.

Are there any plans to add support for keep-alive, and if not will you consider adding it to the plans? Or maybe there already is support and I just could not find out how to enable it 🙂

/Johan

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/system/32/97283_2.png) [@system](https://discussions.unity.com/u/system)\
**Post date:** [October 28, 2015, 9:04am UTC](https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075/2 "2015-10-28T09:04:30Z")

</div>

Passed along to the dev regarding the UnityWebRequest. So, definitely noted but plans are still mainly just fleshing out existing functionality to all platforms.

---

<div class="post-metadata">

**Author:** ![johanwirde](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@johanwirde](https://discussions.unity.com/u/johanwirde)\
**Post date:** [October 30, 2015, 11:55am UTC](https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075/3 "2015-10-30T11:55:16Z")

</div>

Ok - thanks for the response. Feel free to reach out if you need testing or feedback on the api/implementation. We have a fairly demanding usecase with frequent RESTlike communication using large and small payloads. We also need to use Server Sent Events.

On top of this we need to have it running on current gen consoles. It would be great if we could use UnityWebRequest for this, but we need to keep other options open depending on timeline for console and for important features such as keep-alive

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/system/32/97283_2.png) [@system](https://discussions.unity.com/u/system)\
**Post date:** [October 30, 2015, 12:24pm UTC](https://discussions.unity.com/t/unitywebrequest-and-keep-alive/603075/4 "2015-10-30T12:24:00Z")

</div>

> [@johanwirde](#):
>
> On top of this we need to have it running on current gen consoles. It would be great if we could use UnityWebRequest for this, but we need to keep other options open depending on timeline for console and for important features such as keep-alive

Yup, definitely in the works (well, console). Keep-alive duly noted and on the backlog.
