question

ryan-2 avatar image
ryan-2 asked

how to check/compare server build version and client's build version?

is there such api that'll allow me to check and/or compare server build version and client build version and return whether or not to update?

apisunity3d
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi @ryan-2,

There is no such API can do that, this is something you need to implement by yourself. For instance, here a possible way to do that:

  1. The client call ExecuteCloudScript with its client build version as the function parameter.
  2. In the CloudScript function, it will first fetch the server build version by calling GetServerBuildInfo (let’s say you store it in the Comment property) and compare it with the client build version. Then it will decide whether the client should update or not and return the result to the client.

Of course, there are many other alternatives, you can choose whatever suits you best.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.