I am trying to call an RPC function from the client side. I am making all the function calls with a client created over an IP and a port number that is 7350.
I understand from the docs that I need to make the RPC calls from another port that is 7349. Do i have to create a new client with that parameters? And is it possible to use the session created through the authentication made via the client working on 7350 port?
I couldn’t make an RPC call trying all those possibilities, I ll appreciate if you help me
This is not the case. Port 7349 is where you can reach Nakama’s GRPC listener, and port 7350 is the HTTP listener. Both can perform all functions available in Nakama - the distinction is the transport layer, not features.
Could you point out where in the docs it mentions you need to connect to port 7349 to call RPC functions, so we can clarify that section?
I put the lua module in the modules folder and restarted the docker and see that the module I have deployed is recognized by looking at the logs. But when I run the RPC call with the code below;
var payload = "{\"PokemonName\": \"pikachu\"}";
var rpcid = "update_metadata";
var pokemonInfo = await client.RpcAsync(session, rpcid, payload);
It was actually like that but it wasn’t working that way either. It seems that it was due to another reason. I tried lots of other things, we moved everything to docker from kubect etc. and it became a mess. Now I did everything by the book and now it is working with your help.
Thanks again. I am really impressed with your quick response.