I want to pass an app version to nakama server in every connection.
I tried to store it in ISession.
session.Vars.Add("AppVersion", "this is test value");
and call rpc like this.
var apiRpc = await client.RpcAsync(session, "GetPlayerInfoRPC", request);
I tried to get it via context.
vars, ok := ctx.Value(runtime.RUNTIME_CTX_VARS).(map[string]string)
But ok is always false.
What is the Vars for?
And What is the best way to pass custom values in all connections?