Open cdhanna opened 4 months ago
We could use UnityWebRequester
, if we can find out how to handle Server-Side-Event support; aka, reading the response stream as it arrives instead of all buffered at the end.
We could use explicit ContinueWith
and remove the async/await
syntax around the CLI server.
We could drop support for Unity 2020 (but this isn't viable until Unity6 LTS later in 2024)
The
HttpClient
code doesn't seem to be working well on Unity 2020. Gabriel noticed that thePingServer
method would hang forever sometimes, but when updating to 2022, it was fine.this maybe has to do with how Unity is handling task continuations between major versions.