11-09-2021, 03:34 PM
9 minutes ago, nicolasg said:
And maybe be able to pause and resume the download...
Yea ... that depends how the server is setted and if it support the Range 2 .... guess in this case the best way is to create a nodejs api which manage the connection (backend) and checks:
If a player need to downloaded the entire client -> download the latest stable version, then set the vtm for download the necessary patch
If a player need to update the client -> the client is already downloaded, based on the difference between local version and remote ones, update it
If an update was stopped and wanna be resumed -> more information in the stack attached
Repair function: a basic CRC32 should be enought for checks the corrupted files and download only those!
my suggestions is to move everything on a Client/Server struct. You should be able to implement an easy api in NODEJS + Express and then just need to develop the client side stuff :3

