beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
5 stars 0 forks source link

USAM - CLI server doesn't work on Unity 2020 (intel) #3375

Open cdhanna opened 4 months ago

cdhanna commented 4 months ago

The HttpClient code doesn't seem to be working well on Unity 2020. Gabriel noticed that the PingServer 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.

cdhanna commented 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)