-
I made "getgamelist" runtime module on Nakama server. If I call the api, it does not return payload of the call. Is there way to get it? Thank you. and Here is the RPC call log. I/flutter ( 9549): INFO: 2022-08-12 15:33:46.013905: connected |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found out how to get a result from RPC calling. You need to modify "nakama_websocket_client.dart" ( from line # 185 ) if (waitingFuture is Completer<rtpb.Match>) {
return waitingFuture.complete(receivedEnvelope.match);
} else if (waitingFuture is Completer<rtpb.MatchmakerTicket>) {
return waitingFuture.complete(receivedEnvelope.matchmakerTicket);
} else if (waitingFuture is Completer<rtpb.Status>) {
return waitingFuture.complete(receivedEnvelope.status);
} else if (waitingFuture is Completer<rtpb.Channel>) {
return waitingFuture.complete(receivedEnvelope.channel);
} else if (waitingFuture is Completer<rtpb.ChannelMessageAck>) {
return waitingFuture.complete(receivedEnvelope.channelMessageAck);
} else {
return waitingFuture.complete();
} to this ------------------------------------------ if (waitingFuture is Completer<rtpb.Match>) {
return waitingFuture.complete(receivedEnvelope.match);
} else if (waitingFuture is Completer<rtpb.MatchmakerTicket>) {
return waitingFuture.complete(receivedEnvelope.matchmakerTicket);
} else if (waitingFuture is Completer<rtpb.Status>) {
return waitingFuture.complete(receivedEnvelope.status);
} else if (waitingFuture is Completer<rtpb.Channel>) {
return waitingFuture.complete(receivedEnvelope.channel);
} else if (waitingFuture is Completer<rtpb.ChannelMessageAck>) {
return waitingFuture.complete(receivedEnvelope.channelMessageAck);
**} else if (waitingFuture is Completer<Rpc>) {
return waitingFuture.complete(receivedEnvelope.rpc);**
} else {
return waitingFuture.complete();
} Thank you. |
Beta Was this translation helpful? Give feedback.
I found out how to get a result from RPC calling.
You need to modify "nakama_websocket_client.dart" ( from line # 185 )