Handling OnOffline Event With Migrate Method
Diarkis server cluster has a mechanism to handle server autoscaling.
When the cluster needs to scale in, some servers in the cluster prepares to remove themselves from the cluster.
The servers will raise the OnOffline event on the clients connected to those servers. The clients then need to re-connect.
The example below explains how to implement re-connection:
UDP Client
TCP Client
C# Client SDK v0.1.12 and later.