Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

UnityWebRequest and keep-alive?

Discussion in '5.3 Beta' started by johanwirde, Oct 27, 2015.

  1. johanwirde

    johanwirde

    Joined:
    Oct 27, 2015
    Posts:
    7
    I have started trying out the new UnityWebRequest API (https://docs.google.com/document/d/...qld6BaNgmSuQr3Ga4/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
     
  2. Alex-Lian

    Alex-Lian

    Guest

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

    johanwirde

    Joined:
    Oct 27, 2015
    Posts:
    7
    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
     
  4. Alex-Lian

    Alex-Lian

    Guest

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