Custom Events in RPC with GO

I am writing RPC with GO.

When calling RPC from unity game client, is there a way to create and subscribe to custom events?

RpcHealthcheck

For example: Let’s say game client called RpcHealthcheck and on response we want to subscribe to some custom event.

IApiRpc response = await client.RpcAsync(session, “RpcHealthcheck”);

response.onCustomEvent += HealthCheckReceiver;

In addition to this, I also want to know how to (send data or call function or notify) the client from server for custom purpose.

Hi @kamyasuraj,

you could subscribe to events inside rpc callbacks (Nakama: Unity/.Net | Heroic Labs Documentation), does it work for you?

In addition to this, I also want to know how to (send data or call function or notify) the client from server for custom purpose.

Check notifications to send data to clients.